Is there something that we can do in C and not in C++?
Answer Posted / dangling pointer
try this one
int *x=malloc(10);
it works in c but not in c++ reason is we will have to
explicitly cast in c++ to convert a void* to another type
to work.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Can you write a function similar to printf()?
Differentiate between an inspector and a mutator ?
What is the basic difference between C and C++?
Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?
What is the meaning of c++?
What is singleton pattern in c++?
If dog is a friend of boy, is boy a friend of dog?
What is meant by entry controlled loop?
Distinguish between a # include and #define.
What is java and c++?
How a macro differs from a template?
What is a singleton class c++?
Who was the creator of c++?
What are guid? Why does com need guids?
What is the best way to take screenshots of a window with c++ in windows?