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
Is map sorted c++?
Why is it called c++?
How are Structure passing and returning implemented by the compiler?
Describe the advantages of operator overloading?
How is objective c different from c++?
Is c++ a good first language to learn?
What are the extraction and insertion operators in c++?
Why do we use pointers in c++?
What is a string example?
Is c++ low level?
Explain binary search.
What is the c++ code?
What is an html tag?
How new/delete differs from malloc()/free?
What are arithmetic operators?