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 are manipulators in c++ with example?
What is iterator in c++?
If you don’t declare a return value, what type of return value is assumed?
write a function signature with various number of parameters.
How does atoi function work?
What is c++ code?
What is istream c++?
what are Operators and explain with an example?
How many types of modularization are there in c++?
What do you mean by overhead in c++?
Can we specify variable field width in a scanf() format string? If possible how?
Is linux written in c or c++?
What is long in c++?
What is an operator in c++?
What are the advantages of c++ over c?