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 use of virtual destructor?
What are single and multiple inheritances in c++?
How do you define a class in c++?
What are the advantages of inheritance in c++?
When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?
What is the two main roles of operating system?
Can you please explain the difference between using macro and inline functions?
What is an iterator?
Write a function to find the nth item from the end of a linked list in a single pass.
What is lambda expression c++?
Is swift a good first language?
What is an undefined reference/unresolved external symbol error and how do I fix it?
How is new() different from malloc()?
How many types of scopes are there in c++?
What is using namespace std in c++?