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

There are 100 students in a class. The management keep information in two tables. Those two tables are given like Roll no Name Age 001 ABC 15 002 XYZ 14 and Roll No Subject Marks 001 Math 75 001 Physics 55 002 Math 68 001 Hindi 69 They want the information like this Roll No Name Hindi Physics Math Total 001 ABC 69 55 75 199 002 XYZ 68 74 84 226 And Roll No Suject Highest 001 Math 98 007 Physics 84 021 Hindi 74 All 275 All information is kept in structure in main memory. You have to find last two tables.

2545


What kind of problems can be solved by a namespace?

601


Is there a sort function in c++?

558


What does it mean to declare a destructor as static?

631


What are the main features of c++?

557






What is the basic difference between C and C++?

636


What can c++ be used for?

593


What are the advantages of c++? Explain

609


What is a template in c++?

645


What is istream and ostream in c++?

604


What is name hiding in c++?

630


Can non graphic characters be used and processed in C++?

708


How do you clear a set in c++?

613


Is it possible for the objects to read and write themselves?

655


What is the use of dot in c++?

638