Write any small program that will compile in "C" but not
in "C++"

Answer Posted /

void main()
{
const var;
}

gives error in c++ but not in c....

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is java easier than c++?

586


What is stack unwinding?

604


what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?

1746


Should I learn c or c++ or c#?

555


What are pointer-to-members in C++? Give their syntax.

615






What is the difference between #import and #include in c++?

592


What kind of problems can be solved by a namespace?

591


What is the object serialization?

618


what is the difference between overloading & overriding? give example.

561


What is flush c++?

538


What is unary operator? List out the different operators involved in the unary operator.

584


Why is it called c++?

578


What does return 0 do in c++?

576


When should overload new operator on a global basis or a class basis?

608


How can you quickly find the number of elements stored in a dynamic array?

574