what is the behaviour of C and C++ compiler for the below
statements.
int *p;
p = malloc(100);
Is the behaviour same ? or different ?
Answer Posted / venu
we should explicitly typecast. Otherwise it is give a
compilation error.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is the use of dot in c++?
What are the two types of comments?
How can I improve my c++ skills?
What is searching? Explain linear and binary search.
What is c++ array?
explain the reference variable in c++?
What are libraries in c++?
What does scope resolution operator do?
What is the sequence of destruction of local objects?
Differentiate between an inspector and a mutator ?
What is singleton pattern in c++?
Can I learn c++ as my first language?
What is the difference between strcpy() and strncpy()?
Why is swift so fast?
What is the basic structure of c++ program?