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
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
Why c is called procedure oriented language?
How can you restore a redirected standard stream?
What is typedef example?
Subtract Two Number Without Using Subtraction Operator
Write a program to reverse a string.
What is pointer in c?
which is an algorithm for sorting in a growing Lexicographic order
Is c compiled or interpreted?
Why string is used in c?
What happens if you free a pointer twice?
Which is best book for data structures in c?
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
Compare and contrast compilers from interpreters.