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

What is the difference between interpreters and compilers?

721


What is the use of function pointer?

658


Which is better turbo c++ or dev c++?

642


Write a program to interchange 2 variables without using the third one.

675


What do you mean by vtable and vptr in c++?

721






What is encapsulation in C++? Give an example.

682


What is binary search in c++?

684


Is there finally in c++?

714


Differentiate between C and C++.

798


What is the difference between delegation and implemented-in-terms-of?

632


What is meant by iomanip in c++?

715


What is meant by forward referencing and when should it be used?

655


Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.

6007


Explain the use of virtual destructor?

710


what you know about c++?

759