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 is the last index number in an array of 100 characters a) 100 b) 99 c) 101
What is the fastest c++ compiler?
Explain friend class?
Can we make copy constructor private in c++?
What is setw manipulator in c++?
Do the names of parameters have to agree in the prototype, definition, and call to the function?
What is c++ 11 and c++ 14?
Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list
what are function pointers?
What does it mean to declare a member function as static?
Is c++ the hardest programming language?
What are the benefits of operator overloading?
Perform addition, multiplication, subtraction of 2-D array using Operator Overloading.
What is increment operator in c++?
Is linux written in c or c++?