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 operators can you overload in c++?
How did c++ start?
I want to write a C++ language program that: 1. Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. The program should work for squares of all side sizes between 1 and 20.
what are Operators and explain with an example?
What is vector processing?
What does new return if there is insufficient memory to make your new object?
What do you mean by public protected and private in c++?
Is c++ faster than c?
What is a v-table?
What is runtime polymorphism in c++?
What is the basic difference between C and C++?
What are proxy objects in c++?
What is c++ used for in games?
What type of question are asked in GE code writing test based on c++ data structures and pointers?
What is the advantage of an external iterator.