What is the Difference between Class and Struct?
Answer Posted / vishnupriya
1.the variables of struct r jus varialbles inly,whereas it
it objects for class...
2. pointers can be used in structure only for same return
types,but in classes it can be uses for diff classes
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How can you call a function, given its name as a string?
Explain how do you print only part of a string?
Difference between Function to pointer and pointer to function
What is static and auto variables in c?
What are the scope of static variables?
Why does not c have an exponentiation operator?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
What is the maximum length of an identifier?
What is the g value paradox?
What are pointers?
What is the use of typedef in c?
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
In a byte, what is the maximum decimal number that you can accommodate?
Write a program to identify if a given binary tree is balanced or not.
What is meant by 'bit masking'?