What is the Difference between Class and Struct?

Answer Posted / santhosh.r

Structs allocates continues memory
where as class does not
structs and functions are the basic idea behind class

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How a string is stored in c?

809


What is a program flowchart?

821


Is null a keyword in c?

936


Explain what are reserved words?

841


a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above

1141


Is a pointer a kind of array?

836


Which header file is used for clrscr?

789


Can a file other than a .h file be included with #include?

881


Explain two-dimensional array.

825


the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?

756


Explain bit masking in c?

908


How do I determine whether a character is numeric, alphabetic, and so on?

864


Explain null pointer.

820


What is an operator?

853


What are pointers really good for, anyway?

811