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
What is a singleton c++?
What is searching? Explain linear and binary search.
What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?
an operation between an integer and real always yeilds a) integer result b) real result c) float result
Differentiate between C and C++.
What are c++ manipulators?
Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.
Explain virtual class and friend class.
What operator is used to access a struct through a pointer a) >> b) -> c) *
What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?
List down the guideline that should be followed while using friend function.
Write a function to find the nth item from the end of a linked list in a single pass.
What is constant in c++ with example?
Explain what you mean by a pointer.
what is scupper?