What are the differences between a struct in C and in C++?
Answer Posted / shakti singh khinchi
In C, structures does not support "virtual" mechanism like
virtual functions whereas C++ structures supports virtual
mechanism like classes.
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
What is the sequence of destruction of local objects?
What is an object in c++?
Should I learn c or c++ first?
What is a sequence in c++?
Describe the syntax of single inheritance in C++?
Discuss the possibilities related to the termination of a program before entering the mainq method?
Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?
Write a function to perform the substraction of two numbers. Eg: char N1="123", N2="478", N3=-355(N1-N2).
What is searching? Explain linear and binary search.
What is c++ similar to?
What are structures and unions?
Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?
What is the difference between an enumeration and a set of pre-processor # defines?
What is the role of static keyword for a class member variable?
Why is the function main() special?