What is the Difference between Class and Struct?

Answer Posted / revathy

no functions in structures
member functions are available in class

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how do you determine whether to use a stream function or a low-level function?

871


Where is volatile variable stored?

865


What is ## preprocessor operator in c?

846


what is the format specifier for printing a pointer value?

811


Explain logical errors? Compare with syntax errors.

844


What are the different file extensions involved when programming in C?

1029


1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321

3458


How many keywords are there in c?

835


how to find binary of number?

3963


What's the right way to use errno?

877


Explain the difference between malloc() and calloc() function?

822


Why calloc is better than malloc?

810


What does struct node * mean?

826


How will you declare an array of three function pointers where each function receives two ints and returns a float?

1098


Which is better oop or procedural?

833