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

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

868


What are the disadvantages of c language?

877


What is the size of a union variable?

802


Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

916


What is the condition that is applied with ?: Operator?

895


What is wrong with this declaration?

842


What is integer constants?

812


"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above

837


What is a static function in c?

854


What is the right type to use for boolean values in c? Is there a standard type?

797


which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above

1420


what is the height of tree if leaf node is at level 3. please explain

1843


Write a program to reverse a given number in c?

788


What is the code for 3 questions and answer check in VisualBasic.Net?

1921


What do you mean by invalid pointer arithmetic?

837