What is the Difference between "C structure" and "C++
structure"?
Answer Posted / ranjeet garodia
In C++, structure behaves like class like can add function,
and can use properties on class as inheritance, virtual,
etc.
while in C, structure we can have only data member but not
functions.
| Is This Answer Correct ? | 57 Yes | 8 No |
Post New Answer View All Answers
What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor
What is an inline function in c++?
What is data types c++?
Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?
What is basic if statement syntax?
Do you know about C++ 11 standard?
What is array in c++ example?
What are the advantages of using typedef in a program?
Explain about Virtual Function in C++?
How do you compile the source code with your compiler?
Which is best ide for c++?
what are the iterator and generic algorithms.
What is the meaning of string in c++?
What does override mean in c++?
What are c++ stream classes?