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
Are there interfaces in c++?
What is functions syntax in c++?
What are smart pointers?
What is virtual methods?
What are pointers used for c++?
What is name hiding in c++?
What is a pointer how and when is it used?
Explain how an exception handler is defined and invoked in a Program.
What is a singleton c++?
What are the advantages of using pointers in a program?
Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?
Who made c++?
What are the three forms of cin.get() and what are their differences?
Do you know the problem with overriding functions?
What are signs of manipulation?