Write any small program that will compile in "C" but not
in "C++"
Answer Posted / sauarv
answer no.. 6 is the most correct solution
as the class is a keyword in c++
but for answer 9 ,,ur prediction is correct that it will give error in c++ ,,although ur reason is not right
printf n csanf are not c specific
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the best way to declare and define global variables?
In inline " expression passed as argument are evalauated once " while in macro "in some cases expression passed as argument are evaluated more than once " --> i am not getting it plz help to make me understand....
Who calls main function?
What is lambda expression c++?
What is endl?
what is a class? Explain with an example.
Give example of a pure virtual function in c++?
Describe about storage allocation and scope of global, extern, static, local and register variables?
How can you link a c++ program to c functions?
What is scope in c++ with example?
Mention the storage classes in c++.
When is the destructor called?
Why isn't sizeof for a struct equal to the sum of sizeof of each member?
Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.
Difference between strdup and strcpy?