Write any small program that will compile in "C" but not
in "C++"
Answer Posted / nitesh
ans 3 and 4 are incorrect in my opinion.
xyz()
{
printf("very good");
}
can be compiled by including the header file "Stdio.h"
| Is This Answer Correct ? | 6 Yes | 4 No |
Post New Answer View All Answers
Can we use clrscr in c++?
What is a constant reference?
What does scope resolution operator do?
In inline " expression passed as argument are evalauated once " while in macro "in some cases expression passed as argument are evaluated more than once " --> i am not getting it plz help to make me understand....
Why c++ does not have finally?
What is a lambda function c++?
Explain what are accessor methods?
Where must the declaration of a friend function appear?
Write my own zero-argument manipulator that should work same as hex?
Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list
What is the use of namespace std in C++?
Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?
What is boyce codd normal form in c++?
What is the default access level?
Which one between if-else and switch is more efficient?