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
Write a program to find the Fibonacci series recursively.
Which software is best for programming?
What is oops in c++?
What are arithmetic operators?
What is format for defining a structure?
What is general form of pure virtual function? Explain?
Explain what are accessor methods?
How would perform Pattern Matching in C++?
What are stacks?
What is the difference between global variables and static varables?
Difference between delete and free.
How are the features of c++ different from c?
What is c++ redistributable?
Is linux written in c or c++?
What is c++ programming language?