Write any small program that will compile in "C" but not
in "C++"
Answer Posted / aravind
xyz()
{
printf("very good");
}
this is correct and if u add getch();
in main then there is no chance of compilation in CPP for sure
Is This Answer Correct ? | 3 Yes | 11 No |
Post New Answer View All Answers
Do you know what are the new features that iso/ansi c++ has added to original c++ specifications?
What is new in c++?
How is new() different from malloc()?
Can you overload the operator+ for short integers?
How are pointers type-cast?
What is vector pair in c++?
What does it mean to declare a member function as static?
What are keywords in c++?
How do you find out if a linked-list has an end?
What is the difference between C and CPP?
What do you understand by a pure virtual member function?
What is the difference between an external iterator and an internal iterator?
What doescout<<(0==0) print out a) 0 b) 1 c) Compiler error: Lvalue required
What is auto type c++?
Where Malloc(), Calloc(), and realloc() does get memory?