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 does new do in c++?
Are vectors passed by reference c++?
Explain how functions are classified in C++ ?
Is c++ the best programming language?
What are the important differences between c++ and java?
Why is c++ called oops?
What are the characteristics of friend functions?
What are the general quetions are in DEna bank manager IT/System interviews?
What happens if a pointer is deleted twice?
Differentiate between an array and a list?
What does new in c++ do?
What information can an exception contain?
How does java differ from c and c++?
What is an adaptor class or wrapper class in c++?
What are the c++ access specifiers?