Toggle navigation
MCQ by Subjects
General
Quantitative Aptitude
Reasoning
General Awareness / General Knowledge (GK)
Language
English Language
Computer Knowledge
Computer Awareness
Banking
Banking Awareness
Engineering
C Programming
Database
Computer Networking
Java Programming
Mechanical Engineering
Electronics and Communication Engineering
Medical / Science
Microbiology
MCQ by Examinations
Bank Jobs
IBPS PO Preliminary
Corporation Bank SO
IBPS Clerk Prelims
SBI Clerk Prelims
Interview Questions
Engineering
C Programming
Database
Computer Networking
Java Programming
Mechanical Engineering
Electronics and Communication Engineering
Online Tests
Top
Discussion
Why do we write (int *) before malloc?
int *ip = (int *)malloc(sizeof(int));
A.
It is for the syntax correctness
B.
It is for the type-casting
C.
It is to inform malloc function about the data-type expected
D.
None of the mentioned
Answer:
B
None
No comment is present. Be the first to comment.
Loading…
Post your comment
Subject Categories
General
Language
Computer Knowledge
Banking
Engineering
Medical / Science
Examination Categories
Bank Jobs
Management
Government Jobs
Science & Technology
Private Jobs