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
What is the outcome of cout< a) 16 b) 17 c) 16.5
what is data encapsulation in C++?
what is a class? Explain with an example.
Do you know what are pure virtual functions?
Explain what are single and multiple inheritances in c++?
What are manipulators in c++ with example?
When we use Abstract Class and when we use Interface?where we will implement in real time?
What is stream and its types in c++?
What is class and structure in c++?
What is a pointer how and when is it used?
What does extern mean in a function declaration in c++?
What is a c++ vector?
What kind of problems can be solved by a namespace?
In c++, what is the difference between method overloading and method overriding?
Difference between pass by value and pass by reference?