What are the differences between a struct in C and in C++?

Answer Posted / nithin

what is the use of struct in c then? wat advantages does it
offer?

Is This Answer Correct ?    1 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can the creation of operator** is allowed to perform the to-the-power-of operations?

578


what is a class? Explain with an example.

617


Which format specifier is used for printing a pointer value?

576


Which bitwise operator is used to check whether a particular bit is on or off?

588


What is the advantage of an external iterator.

571






How we can differentiate between a pre and post increment operators during overloading?

593


What are the advantages of using a pointer? Define the operators that can be used with a pointer.

602


What do you mean by friend class & friend function in c++?

620


the maximum length of a character constant can be a) 2 b) 1 c) 8

600


What does #define mean in c++?

611


How a new element can be added or pushed in a stack?

581


What does namespace mean in c++?

550


Difference between struct and class in terms of access modifier.

695


What is the maximum value of a unsigned char a) 255 b) 256 c) 128

631


What are the types of array in c++?

618