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

Describe the header file and its usage in c programming?

844


Explain the ternary tree?

810


What is structure padding in c?

851


What is an endless loop?

1068


What is the symbol indicated the c-preprocessor?

960


main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

870


How do you initialize pointer variables?

830


Explain how do you use a pointer to a function?

869


What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?

1199


What are the types of pointers in c?

757


Difference between constant pointer and pointer to a constant.

842


What is string constants?

909


Differentiate between ordinary variable and pointer in c.

872


Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.

1870


Explain what are the advantages and disadvantages of a heap?

866