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...

Is there something we can do in C but not in C++?

Declare variable names that are keywords in C++ but not C.

Answer Posted / ruth

Aside from a few minor differences, there's nothing C can
do that C++ can't. About the only things I can think of are:

int foo = Something();

int array[ foo ]; // C++ can't do this, but C can IIRC


Of course C++ provides alternatives to do the same thing:

vector<int> array(foo); // similar code in C++


C is more friendy for making external libraries. A DLL
compiled in C will likely work in any C/C++ program made in
any other C/C++ compiler. Whereas DLLs made with C++ often
only work in C++ programs made in the same C++ compiler

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When should you not use a type cast?

1129


What is the difference between union and anonymous union?

1316


while initialization of array why we use a[][2] why not a[2][]...?

2371


What is the use of in c?

1034


What are the features of c languages?

1107


How can this be legal c?

1094


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

1956


What is bubble sort technique in c?

991


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

1312


Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?

1259


Explain why c is faster than c++?

1080


What is clrscr ()?

1115


Explain what are multidimensional arrays?

1083


What are actual arguments?

1108


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2442