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
What is Destructor in C++?
What is friend class in c++ with example?
How come you find out if a linked-list is a cycle or not?
What is the function to call to turn an ascii string into a long?
Can we distribute function templates and class templates in object libraries?
What jobs can you get with a c++ certification?
Am studying basic c++ programming, have been given the following assignment. Design a linear program to calculate the maximum stress a material can withstand given a force and a diameter of a circle. To find the required area pi should be defined. Have most of the program sorted out but am at a loss as to how to show the calculations required. Can anyone help?
Differentiate between structure and class in c++.
What is class and structure in c++?
Why namespace is used in c++?
Why c++ is the best language?
How java is different from c and c++?
how to connect with oracle 9i with server in socket program in c/c++
What are references in c++? What is a local reference?
Is python written in c or c++?