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's the order in which the local objects are destructed?
Which function cannot be overloaded c++?
Why is it necessary to use a reference in the argument to the copy constructor?
What is using namespace std in cpp?
What is ifstream c++?
What's the most powerful programming language?
What is atoi?
What is the prototype of printf function?
What is a storage class?
How do you invoke a base member function from a derived class in which you have not overridden that function?
Are vectors passed by reference c++?
What's c++ used for?
What is the use of 'using' declaration in c++?
List the types of polymorphism in c++?
If a function doesn’t return a value, how do you declare the function?