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


Please Help Members By Posting Answers For Below Questions

What is the best way to declare and define global variables?

693


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....

1945


Who calls main function?

583


What is lambda expression c++?

576


What is endl?

629






what is a class? Explain with an example.

616


Give example of a pure virtual function in c++?

583


Describe about storage allocation and scope of global, extern, static, local and register variables?

730


How can you link a c++ program to c functions?

617


What is scope in c++ with example?

628


Mention the storage classes in c++.

645


When is the destructor called?

601


Why isn't sizeof for a struct equal to the sum of sizeof of each member?

538


Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.

614


Difference between strdup and strcpy?

642