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
What is double pointer in c?
How to get string length of given string in c?
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
Explain what are run-time errors?
Why does notstrcat(string, "!");Work?
What does the c preprocessor do?
What is the purpose of type declarations?
please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com
writ a program to compare using strcmp VIVA and viva with its output.
Explain how do you use a pointer to a function?
When should a type cast not be used?
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
Explain what is the benefit of using an enum rather than a #define constant?
in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above
Is null a keyword in c?