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
Can you explicitly call a destructor on a local variable?
What is a dll entry point?
Do you know what is overriding?
Do you know what are pure virtual functions?
What is atoi?
Is atoi safe?
How is static data member similar to a global variable?
What is meant by iomanip in c++?
What are the defining traits of an object-oriented language?
How many different levels of pointers are there?
Why Pointers are not used in C++?
Explain rtti.
What is the difference between mutex and binary semaphore?
Explain some examples of operator overloading?
What should main() return in c and c++?