Write any small program that will compile in "C" but not
in "C++"
Answer Posted / uma sankar pradhan
xyz()
{
printf("very good");
}
the above code will compile in 'c'
but in 'c++' it will give compilation error
Is This Answer Correct ? | 5 Yes | 6 No |
Post New Answer View All Answers
Which format specifier is used for printing a pointer value?
What is the use of lambda in c++?
What is the difference between cin.read() and cin.getline()?
Why do we use using namespace std in c++?
What is exception handling? Does c++ support exception handling?
What is the use of function pointer?
When must you use a pointer rather than a reference?
Evaulate: 22%5 a) 2 b) 4 c) 0
What is the most useful programming language?
What is the basic difference between C and C++?
True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends
What is the use of register keyword with the variables?
What are different types of loops in c++?
Which programming language is best to learn first?
Why is c++ awesome?