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

We use library functions in the program, in what form they are provided to the program?

611


What does extern mean in a function declaration in c++?

708


Why is c++ not purely object oriented?

573


Which one between if-else and switch is more efficient?

610


What is this weird colon-member (" : ") syntax in the constructor?

549






Explain unexpected() function?

592


What is encapsulation in c++?

676


How do I download c++?

577


Is main a class in c++?

568


What is main function in c++ with example?

572


What is the use of structure in c++?

562


Explain abstraction.

621


How is c++ different from java?

567


What are multiple inheritances (virtual inheritance)?

587


What is nested class in c++?

522