Write any small program that will compile in "C" but not in
"C++"?
Answer Posted / sathish kumar
Hi All,
U can write many programs which will compile in C and not
in C++. Sample program.
const i; /* this is possible in C but not in C++ */
const int i; // it should be done like this in C++.
Thanks & Regards
Sathish Kumar
| Is This Answer Correct ? | 10 Yes | 2 No |
Post New Answer View All Answers
What do you mean by vtable and vptr in c++?
What are the classes in c++?
Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort
What is a float in c++?
What is the role of copy constructor in copying of thrown objects?
What is the difference between #import and #include in c++?
Can you pass an array to a function in c++?
What is the basic of c++?
Do you know the problem with overriding functions?
What is const pointer and const reference?
What is atoi?
What is the use of turbo c++?
Write about the various sections of the executable image?
What do you mean by global variables?
What is iterator c++?