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 that we can do in C and not in C++?

Answer Posted / dheeraj sharma

in c we can assign we can assign void pointer to any type of
pointor varible without typecasting.,but we cant do it in
C++,because C++ does not allow type mismatch.

same case with enum also.in C we can assign integer to enum
member directly,but in C++ we have to typecast integer first
with enum variable.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does the copy constructor differ from the assignment operator (=)?

1131


What is the hardest coding language to learn?

1030


What is the limitation of cin while taking input for character array?

2053


Define vptr.

1019


How does code-bloating occur in c++?

1178


What does it mean to declare a member function as virtual?

1060


which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?

1172


Can we get the value of ios format flags?

1120


What is the full name of logo?

1106


How the virtual functions maintain the call up?

1145


What is searching? Explain linear and binary search.

986


In a function declaration what does extern means?

1038


Comment on local and global scope of a variable.

1134


Do we have to use initialization list in spite of the assignment in constructors?

982


How important is c++?

966