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 recursion?

664


What is meant by a delegate?

612


What is the difference between struct and class?

751


Can we specify variable field width in a scanf() format string? If possible how?

666


What jobs can you get with a c++ certification?

589






Using a smart pointer can we iterate through a container?

565


What is the type of this pointer in c++?

636


What are the advantages of c++?

599


what is software cycle? What is a mission critical system ? What is the important aspect of a real-time system ? Explain the difference between microkernel and macro kernel. Give an example of microkernel.Why paging is used ? Which is the best page replacement algo and Why ? What is software life cycle ? How much time is spent usually in each phases and why Which one do U want to work if selected in Honeywell ? Which are the different types of testing ? What is a distributed system ? Some questions about CSP. Which languages do U know ? What are the differences between Pascal and C. questions from Compiler construction and Lisp. Which are the different computer architecture? What is the requirement in MIMD ? What is the difference between RISC and CISC processors ? Difference between loosely coupled and tightly coupled systems ? What is an open system?

1775


What is public, protected, private in c++?

657


What are the advantages of using pointers in a program?

684


Explain the difference between class and struct in c++?

590


What is the header file for setw?

580


Write a program which employs Recursion

736


Differentiate between a constructor and a destructor in c++.

575