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
What is the type of this pointer in c++?
What does iomanip mean in c++?
Define a constructor?
Can a list of string be stored within a two dimensional array?
How to tokenize a string in c++?
Why is c++ still used?
Which bitwise operator is used to check whether a particular bit is on or off?
What is implicit pointer in c++?
What do you mean by translation unit in c++?
Do class method definitions?
Why is c++ a mid-level programming language?
Give 10 points of differences between C & C++.
Name the implicit member functions of a class.
To what does “event-driven” refer?
What is the full form of stl in c++?