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

What are the advantages of the functions?

867


List the difference between a While & Do While loops?

854


What are the 4 types of unions?

795


If fflush wont work, what can I use to flush input?

848


How to draw the flowchart for structure programs?

8979


What is restrict keyword in c?

860


Write a program to use switch statement.

889


Explain enumerated types in c language?

794


How do you generate random numbers in C?

919


If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.

1993


Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.

1976


Is it better to bitshift a value than to multiply by 2?

866


Explain how can I avoid the abort, retry, fail messages?

821


Which function in C can be used to append a string to another string?

909


List out few of the applications that make use of Multilinked Structures?

1753