What are the differences between a struct and a class in
C++?
Answer Posted / ramesh kasi
The only difference is related to the default access
specifier.
The members of a structure have public access by default.
The members of a calss have private access by default.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What are references in c++?
Why do we need function?
What is static function? Explain with an example
How to access a variable of the structure?
Can comments be longer than one line?
What is abstract keyword in c++?
Can recursive program be written in 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 are abstract data types in c++?
What is the maximum value of a unsigned char a) 255 b) 256 c) 128
How are Structure passing and returning implemented by the compiler?
Is c++ an oop?
Should I learn c or c++ first?
Keyword mean in declaration?
What is iomanip c++?