What is the Difference between "C structure" and "C++
structure"?
Answer Posted / jayesh pawar
1)In "C++" Structure we can specify the data and functions as public,private or protected but in "C" Structure we can't.
2)In "C" Structure Variable initialization must contains the keyword struct but in C++ not required.
| Is This Answer Correct ? | 9 Yes | 3 No |
Post New Answer View All Answers
Explain the isa and hasa class relationships. How would you implement each?
Show the declaration for a static member variable.
Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?
What is the difference between a type-specific template friend class and a general template friend class?
What is the best way to declare and define global variables?
What is this pointer in c++?
What is c++ and its uses?
Write syntax to define friend functions in C++.
What is meant by const_cast?
Who created c++?
We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?
How do you print a string on the printer?
Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?
What does std :: flush do?
What is constructor and destructor in c++?