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

Carry out conversion of one object of user-defined type to another?

815


Explain the difference between using macro and inline functions?

833


What is stack unwinding?

818


What are maps in c++?

725


What is the role of static keyword for a class member variable?

867


What is late binding c++?

747


Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

756


Difference between declaration and definition of a variable.

908


Is arr and &arr are same expression for an array?

819


What is the use of namespace std in C++?

845


Can java be faster than c++?

890


Can the creation of operator** is allowed to perform the to-the-power-of operations?

779


How should a contructor handle a failure?

930


What are the unique features of C++.

792


Define friend function.

796