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 the purpose of scanf() and printf() functions?
Write a code to generate divisors of an integer?
How can you read a directory in a C program?
What are the advantages of Macro over function?
What is the purpose of realloc()?
What is a good way to implement complex numbers in c?
What is sorting in c plus plus?
How is actual parameter different from the formal parameter?
What is the size of a union variable?
What are the properties of union in c?
What is a example of a variable?
can anyone please tell about the nested interrupts?
What are conditional operators in C?
Explain what is the use of a semicolon (;) at the end of every program statement?
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.