Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 is a singleton c++?

1046


What is searching? Explain linear and binary search.

1042


What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?

1104


an operation between an integer and real always yeilds a) integer result b) real result c) float result

1217


Differentiate between C and C++.

1325


What are c++ manipulators?

1122


Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.

1094


Explain virtual class and friend class.

1103


What operator is used to access a struct through a pointer a) >> b) -> c) *

1164


What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?

1164


List down the guideline that should be followed while using friend function.

1117


Write a function to find the nth item from the end of a linked list in a single pass.

1023


What is constant in c++ with example?

1208


Explain what you mean by a pointer.

1159


what is scupper?

2471