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

Explain public, protected, private in c++?

784


Should I learn c++ c?

853


If you want to share several functions or variables in several files maitaining the consistency how would you share it?

786


What is a local reference?

954


What is the latest c++ standard?

911


What is the difference between reference and pointer?

878


What is pointer to array in c++?

848


Will this c++ program execute or not?

831


What is scope operator in c++?

851


What is general format for a prototype?

835


What does extern mean in a function declaration in c++?

966


Can c++ be faster than c?

826


Define whitespace in C++.

988


Can we get the value of ios format flags?

886


Describe private, protected and public – the differences and give examples.

888