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
How does the copy constructor differ from the assignment operator (=)?
What is the hardest coding language to learn?
What is the limitation of cin while taking input for character array?
Define vptr.
How does code-bloating occur in c++?
What does it mean to declare a member function as virtual?
which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?
Can we get the value of ios format flags?
What is the full name of logo?
How the virtual functions maintain the call up?
What is searching? Explain linear and binary search.
In a function declaration what does extern means?
Comment on local and global scope of a variable.
Do we have to use initialization list in spite of the assignment in constructors?
How important is c++?