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

What are the different types of comments allowed in c++?

581


What are built-in functions? What is the syntax for the definition?

570


Which header file allows file i/o with streams a) fileio.h b) iostream.h c) fstream.h

659


What is the best ide for c++?

574


Is overriding possible in c++?

578






How do you master coding?

567


What is iterator in c++?

616


What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack

587


Explain class invariant.

587


What is atoi?

544


How important is c++?

532


Why isn't sizeof for a struct equal to the sum of sizeof of each member?

543


Can you pass a vector to a function?

539


Does c++ have arraylist?

542


how to access grid view row?

1814