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
Is it legal in c++ to overload operator++ so that it decrements a value in your class?
What is a namespace in c++?
Why are pointers used?
What is encapsulation in c++?
What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0
How does work in c++?
Why do we need function?
What is constructor c++?
Will c++ be replaced?
How are Structure passing and returning implemented by the compiler?
What are friend classes? What are advantages of using friend classes?
What is the purpose of templates in c++?
Is there finally in c++?
Why is it necessary to use a reference in the argument to the copy constructor?
What are the various arithmetic operators in c++?