Write any small program that will compile in "C" but not
in "C++"

Answer Posted / nitesh

ans 3 and 4 are incorrect in my opinion.

xyz()
{
printf("very good");
}
can be compiled by including the header file "Stdio.h"

Is This Answer Correct ?    6 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does flush do c++?

561


Can we sort map in c++?

599


What is static class data?

579


What is the difference between an enumeration and a set of pre-processor # defines?

838


what is data abstraction in C++?

655






Does c++ have foreach?

530


What is the full form of c++?

623


Is c++ harder than java?

572


Why pointer is used in c++?

620


What is c++ runtime?

659


Should I learn c or c++ or c#?

559


What are the five basic elements of a c++ program?

585


How can I disable the "echo" feature?

612


What are the basics of local (auto) objects?

635


What do you mean by funtion prototype?

593