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
Why is polymorphism useful?
What are punctuators in c++?
Will c++ be replaced?
What is the header file for setw?
What is while loops?
Explain what you mean by a pointer.
Explain the differences between private, public and protected and give examples.
What is class in c++ with example?
Explain how we implement exception handling in c++?
What is the limitation of cin while taking input for character array?
Who invented turbo c++?
Are php strings immutable?
Does a derived class inherit or doesn't inherit?
What is a syntax in c++?
What is an undefined behavior and sequence points