Write any small program that will compile in "C" but not in
"C++"?
Answer Posted / aashish kumar nath
We can do many programs which will run in C but not in C++
like if we declare
int class=8 /*It will run in C but not in c++ */
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
Which sort does c++ use?
How do I start a c++ project?
How do you declare A pointer to a function which receives nothing and returns nothing
How come you find out if a linked-list is a cycle or not?
If you don’t declare a return value, what type of return value is assumed?
Explain container class.
Show the declaration for a pointer to function returning long and taking an integer parameter.
How is static data member similar to a global variable?
What is the C-style character string?
Difference between pass by value and pass by reference?
Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?
How to access a variable of the structure?
What are containers in c++?
Mention the storage classes in c++.
What is the difference between #define debug 0 and #undef debug?