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 / uma sankar pradhan

xyz()
{
printf("very good");
}

the above code will compile in 'c'
but in 'c++' it will give compilation error

Is This Answer Correct ?    5 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How did c++ start?

1095


Describe the advantages of operator overloading?

1048


Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?

1251


How do you sort a sort function in c++ to sort in descending order?

998


Is c++ slower than c?

1048


Write a program using display() function which takes two arguments.

1086


What are the advantages of c++? Explain

1065


What does the nocreate and noreplace flag ensure when they are used for opening a file?

1119


How to declare an array of pointers to integer?

1146


Should the this pointer can be used in the constructor?

1030


What is difference between c++ and c ++ 14?

1058


Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?

2036


Write about the scope resolution operator?

1037


What relational operators if statements in c++?

1180


Discussion on error handling of C++ .

1124