Write any small program that will compile in "C" but not
in "C++"
Answer Posted / pulkit dave
void main()
{
int class=28;
printf("%d",class);
}
it works...
[class] :p
Is This Answer Correct ? | 18 Yes | 3 No |
Post New Answer View All Answers
Why c++ is created?
List the merits and demerits of declaring a nested class in C++?
Please explain the reference variable in c++?
What does #define mean in c++?
If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?
What are c++ stream classes?
Can a constructor return a value?
Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?
Is c++ a good first language to learn?
What is enum class in c++?
What are the various oops concepts in c++?
What is atoi?
Explain the difference between c & c++?
Evaluate !(1&&1||1&&0) a) Error b) False c) True
Using a smart pointer can we iterate through a container?