Write any small program that will compile in "C" but not
in "C++"
Answer Posted / aravind
xyz()
{
printf("very good");
}
this is correct and if u add getch();
in main then there is no chance of compilation in CPP for sure
| Is This Answer Correct ? | 3 Yes | 11 No |
Post New Answer View All Answers
Does c++ have finally?
Describe Trees using C++ with an example.
Why do we use classes in c++?
What is singleton pattern in c++?
When does a 'this' pointer get created?
What is c++ good for?
What are c++ storage classes?
How many different levels of pointers are there?
What does new return if there is insufficient memory to make your new object?
Is there finally in c++?
What is a hash function c++?
Using a smart pointer can we iterate through a container?
What is the function of I/O library in C++ ?
What is ostream in c++?
What are shallow and deep copy?