Difference between Class and Struct.
Answer Posted / praveena.g
class ex:-
class classname
{
int a;
float b;
}
struct {
int a;
int b;
}struct name;
in the struct all members are by default public,
in the class we can deference it private,public,protected.
like these we class will taken.
| Is This Answer Correct ? | 62 Yes | 19 No |
Post New Answer View All Answers
Define macros.
What is the data segment that is followed by c?
What is mean by data types in c?
What is bin sh c?
Where are c variables stored in memory?
Explain how does flowchart help in writing a program?
What is the use of #define preprocessor in c?
What is table lookup in c?
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
How do I convert a string to all upper or lower case?
What is the purpose of sprintf?
What are global variables and explain how do you declare them?
What is wrong with this statement? Myname = 'robin';
Are there any problems with performing mathematical operations on different variable types?
What are pointers in C? Give an example where to illustrate their significance.