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
Why is c++ considered difficult?
How does class accomplish data hiding in c++?
Do you know the use of vtable?
what is c++
declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator
Can we use this pointer inside static member function?
Is map ordered c++?
What are the effects after calling the delete this operator ?
Write a program which employs Recursion
Where do I find the current c or c++ standard documents?
What is c++ hiding?
What is a storage class? Mention the storage classes in c++.
Explain the difference between new() and malloc() in c++?
Explain overriding.
How we can differentiate between a pre and post increment operators during overloading?