What is the Difference between Class and Struct?

Answer Posted / ashish srivastava

by default
struct elements are public
while
class elements are private

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which built-in library function can be used to match a patter from the string?

1010


How do you generate random numbers in C?

931


What is data structure in c and its types?

828


What is volatile c?

782


List a few unconditional control statement in c.

778


what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

1470


List some basic data types in c?

773


Why header file is used in c?

790


what are the 10 different models of writing an addition program in C language?

1674


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1404


I heard that you have to include stdio.h before calling printf. Why?

827


How can I open a file so that other programs can update it at the same time?

920


What do you mean by c?

798


What is the main difference between calloc () and malloc ()?

855


How do I copy files?

817