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

How to compare array with pointer in c?

615


Why are all header files not declared in every c program?

598


Explain what is output redirection?

661


What is an auto variable in c?

750


What are the key features in c programming language?

607






Explain the meaning of keyword 'extern' in a function declaration.

718


What are the primitive data types in c?

570


How is = symbol different from == symbol in c programming?

607


FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above

619


What is the scope of an external variable in c?

563


What is cohesion and coupling in c?

587


How do we print only part of a string in c?

579


If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..

1587


Is c still used?

598


Differentiate fundamental data types and derived data types in C.

608