Write any small program that will compile in "C" but not
in "C++"
Answer Posted / tareq
<code>
int class;
</code>
$gcc a.c -c; echo $?
0
$g++ a.c -c; echo $?
a.c:1: error: expected identifier before ';' token
a.c:1: error: multiple types in one declaration
a.c:1: error: declaration does not declare anything
1
Is This Answer Correct ? | 1 Yes | 6 No |
Post New Answer View All Answers
Is there structure in c++?
What is flag in computer?
What is a pointer with example?
What are manipulators in c++ with example?
how to explain our contribution in the project?
What is the difference between a pointer and a link in c ++?
What does obj stand for?
What is the benefit of learning c++?
What is the protected keyword used for?
What are the four main data types?
What is c++ and its features?
List the advantages of inheritance.
What's the order in which the objects in an array are destructed?
Define macro.
What is overloading unary operator?