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
What is setbase c++?
Differentiate between a copy constructor and an overloaded assignment operator.
What is pointer -to-members in C++? Give their syntax?
What is expression parser in c++
Can we sort map in c++?
Is c++ built on c?
Does c++ cost money?
What is a c++ map?
Define stacks. Provide an example where they are useful.
What are the defining traits of an object-oriented language?
Write a recursive program to calculate factorial in c++.
What is c++ prototype?
What is the difference between cin.read() and cin.getline()?
Do you know the use of vtable?
What is the auto keyword good for in c++?