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

A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor

620


What is 2 d array in c?

550


List the difference between a "copy constructor" and a "assignment operator"?

578


In a header file whether functions are declared or defined?

629


How do you construct an increment statement or decrement statement in C?

737






exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above

656


any "C" function by default returns an a) int value b) float value c) char value d) a & b

662


What does & mean in scanf?

601


What happens if header file is included twice?

650


What is meant by gets in c?

604


What is the difference between procedural and declarative language?

645


How many loops are there in c?

575


Write a program to reverse a given number in c language?

616


What is array in C

704


What are the types of variables in c?

578