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 jobs can you get with a c++ certification?
What is the arrow operator in c++?
What are the implicit member functions of class?
Explain differences between new() and delete()?
When is the copy constructor called?
When does the c++ compiler create temporary variables?
How would perform Pattern Matching in C++?
What is const pointer and const reference?
What is general format for a prototype?
What is implicit pointer in c++?
what are Operators and explain with an example?
Describe linked list using C++ with an example.
Define a conversion constructor?
What does floor mean in c++?
When there is a global variable and local variable with the same name, how will you access the global variable?