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
Explain container class.
What is the purpose of extern storage specifier?
What is static function? Explain with an example
Is c++ an integer?
Explain pass by value and pass by reference.
What are c++ variables?
Is atoi safe?
What are guid?
What is c++ hiding?
Evaluate !(1&&1||1&&0) a) Error b) False c) True
How a macro differs from a template?
What is fflush c++?
What is an adaptor class in c++?
Does there exist any other function which can be used to convert an integer or a float to a string?
Is rust better than c++?