Difference between Class and Struct.
Answer Posted / swetcha
The only difference between a struct and a class is in the
default access. By default, all the members of a struct are
public whereas in a class, al the members are private. The
same is true for the default inheritance type: a struct
entails public inheritance by default whereas a class
entails private inheritance.
| Is This Answer Correct ? | 98 Yes | 23 No |
Post New Answer View All Answers
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
What are called c variables?
Explain what are preprocessor directives?
Explain how do you sort filenames in a directory?
what is the significance of static storage class specifier?
What does p mean in physics?
What are the preprocessor categories?
Is it possible to execute code even after the program exits the main() function?
What is the value of a[3] if integer a[] = {5,4,3,2,1}?
What are the rules for identifiers in c?
write a program to copy the string using switch case?
What does %d do?
Is it fine to write void main () or main () in c?
What is a pointer in c plus plus?
A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(