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

In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that

817


Define token in c++.

884


What is the latest c++ version?

796


Is c++ fully object oriented?

717


Which software is best for coding?

768






Define a conversion constructor?

795


Can recursive program be written in C++?

854


Explain the difference between class and struct in c++?

772


What is the difference between #import and #include?

749


Is linux written in c or c++?

769


What is a null object in c++?

826


What are virtual constructors/destructors?

743


List different attributes in C++?

809


What are static type checking?

796


What is the c++ code?

774