Write any small program that will compile in "C" but not
in "C++"
Answer Posted / balasubramani
main()
{
char a;
printf("string:");
scanf("%s",a);
getch();
}
this is correct if v compile in c
but it results in error when u code xactly the same in cpp
bcoz cpp needs cout n cin instead of printf n scanf :D lol
| Is This Answer Correct ? | 2 Yes | 6 No |
Post New Answer View All Answers
Difference between overloading vs. Overriding
What is the best c++ compiler?
What is searching?
What is class and structure in c++?
What is encapsulation in c++ with example?
Can you please explain the difference between overloading and overriding?
Which software is best for c++ programming?
What is a terminating character in c++?
Is oops and c++ same?
What are disadvantages of pointers?
What is the use of setfill in c++?
Can we use this pointer in a class specific, operator-overloading function for new operator?
What is the difference between delegation and implemented-in-terms-of?
Distinguish between a # include and #define.
Explain the difference between abstract class and interface in c++?