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
Is oops and c++ same?
What are the types of array in c++?
Is there structure in c++?
Is it possible to use a new for the reallocation of pointers ?
Differentiate between the message and method in c++?
What can I safely assume about the initial values of variables which are not explicitly initialized?
What are abstract data types in c++?
Is swift faster than go?
What is extern c++?
What is the latest c++ version?
How come you find out if a linked-list is a cycle or not?
What is endl c++?
How many types of modularization are there in c++?
How can you say that a template is better than a base class?
What is the difference between a pointer and a link in c ++?