Difference between Class and Struct.
Answer Posted / ravish
Structure is a value type variable, but a class is a
reference type variable.
We can create an object of a class but not for a structure.
Structures does not have function definition but a class has..
| Is This Answer Correct ? | 6 Yes | 7 No |
Post New Answer View All Answers
What does the c preprocessor do?
Why c is known as a mother language?
Can you please compare array with pointer?
What do you understand by friend-functions? How are they used?
What is the difference between the = symbol and == symbol?
How can I implement a delay, or time a users response, with sub-second resolution?
What is a stream in c programming?
Why do we need functions in c?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
How can I find the modification date of a file?
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
What library is sizeof in c?
Explain what does it mean when a pointer is used in an if statement?
Write program to remove duplicate in an array?
Why is sprintf unsafe?