How does c++ structure differ from c++ class?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

What is the Diffrence between a "assignment operator" and a "copy constructor"?

3 Answers   Wipro,


What is the difference in size of this two clasees? Class A { int a; char c; float f; } Class B { float f; char c; int a; }

4 Answers  


Which uses less memory? a) struct astruct { int x; float y; int v; }; b) union aunion { int x; float v; }; c) char array[10];

4 Answers   Quark,


What is a constructor in c++ with example?

0 Answers  


Comment on assignment operator in c++.

0 Answers  






What is the best c++ book?

0 Answers  


What is the difference between static link library and dynamic link library?

7 Answers   Tech Mahindra,


Floating point representation and output seems to be compiler dependent?

1 Answers  


What is the difference between Class and Structure?

40 Answers   HP, IBM, Samsung, TCS,


1. What does the following do: void afunction(int *x) { x=new int; *x=12; } int main() { int v=10; afunction(&v); cout<<v; } a) Outputs 12 b) Outputs 10 c) Outputs the address of v

5 Answers   Quark,


When should you use global variables?

0 Answers  


How the compilers arranges the various sections in the executable image?

1 Answers  


Categories