What are the differences between a struct and a class in
C++?
Answer Posted / amit patel
Rsn answer is perfect write.Shivani you are wrong.
the visiblity of members default public in structure,
whereas in class its private as all know.
So please don't make myths here.
for the detail answer for explanation read the following link.
http://carcino.gen.nz/tech/cpp/struct_vs_class.php
Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
What is the difference between an enumeration and a set of pre-processor # defines?
What is a terminating character in c++?
What is std :: endl?
In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h
What is the use of endl?
Who calls main function?
Explain the isa and hasa class relationships. How would you implement each?
What relational operators if statements in c++?
What is meant by entry controlled loop? What all C++ loops are exit controlled?
What is the benefit of c++?
What do you mean by early binding?
What is the difference between while and do while loop? Explain with examples.
Am studying basic c++ programming, have been given the following assignment. Design a linear program to calculate the maximum stress a material can withstand given a force and a diameter of a circle. To find the required area pi should be defined. Have most of the program sorted out but am at a loss as to how to show the calculations required. Can anyone help?
What do the header files usually contains?
Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.