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 difference between interpreters and compilers?
Do you know what are pure virtual functions?
What is the return value of the insertion operator?
What is encapsulation in c++ with example?
How long will it take to learn programming?
Write a program in C++ for Fibonacci series
What is srand c++?
What does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal
What is ifstream c++?
Why is c++ so fast?
Write about the role of c++ in the tradeoff of safety vs. Usability?
What is object in c++ wikipedia?
How do I download c++?
How many standards of c++ are there?
Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.