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 / pulkit dave

void main()
{
int class=28;
printf("%d",class);
}


it works...

[class] :p

Is This Answer Correct ?    18 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are default parameters? How are they evaluated in c++ function?

1223


Write a program to concatenate two strings.

1151


What is prototype for that c string function?

1193


What are the advantages of using pointers in a program?

1191


What do you understand by pure virtual function? Write about its use?

1046


write a porgram in c++ that reads an integer and print the biggest digit in the number

2311


Who was the creator of c++?

1107


Is swift faster than c++?

1070


Which c++ operator cannot overload?

1078


What is a loop? What are different types of loops in c++?

1179


What is c++ try block?

1089


Which compiler does turbo c++ use?

1137


Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.

6457


What is the v-ptr?

1214


What are static variables?

1192