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 does c mean in basketball?
Why are all header files not declared in every c program?
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.
What is pointer to pointer in c language?
What would be an example of a structure analogous to structure c?
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
What is static identifier?
Sir i need notes for structure,functions,pointers in c language can you help me please
What is volatile c?
What is main return c?
What is methods in c?
What is .obj file in c?
what is the difference between class and unio?