What is the Difference between "C structure" and "C++
structure"?

Answer Posted / balaji

1)In "C++" Structure we can specify the data and functions as public,private or protected but in "C" Structure we can't.

2)In "C" Structure Variable initialization must contains the keyword struct but in C++ not required.

Is This Answer Correct ?    34 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is computer programming useful in real life?

596


Explain differences between new() and delete()?

620


Describe linked list using C++ with an example.

650


Is c++ a dying language?

587


What is the role of copy constructor in copying of thrown objects?

600






Const char *p , char const *p What is the difference between the above two?

664


What is the main purpose of c++?

548


What is iomanip c++?

597


Are php strings immutable?

562


Write a Program for read a line from file from location N1 to N2 using command line arguments. Eg:exe 10 20 a.c

801


What is searching?

656


Why is c++ still best?

554


What does new do in c++?

637


Explain what you mean by a pointer.

631


What is main function in c++ with example?

565