What is the Difference between Class and Struct?

Answer Posted / vishnupriya

1.the variables of struct r jus varialbles inly,whereas it
it objects for class...

2. pointers can be used in structure only for same return
types,but in classes it can be uses for diff classes

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;

1414


Tell us the use of fflush() function in c language?

922


how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12

866


What is the difference between c &c++?

867


about c language

1823


Explain About fork()?

872


How can I write functions that take a variable number of arguments?

875


Is python a c language?

799


Why should I use standard library functions instead of writing my own?

999


why wipro wase

2070


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15467


Explain what is dynamic data structure?

918


What is the heap in c?

864


‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .

2625


What is use of null pointer in c?

773