Difference between Class and Struct.
Answer Posted / rahul yadav
wrong
structs can also contain functions in C++,
but in C, i ma not sure.
but since we are talking abot Class so we have to answer in
the context of C++,hence the answer is wrong.
only diff is of default variable scope.
| Is This Answer Correct ? | 37 Yes | 27 No |
Post New Answer View All Answers
Where are local variables stored in c?
What does %c mean in c?
Can you write the function prototype, definition and mention the other requirements.
What is union in c?
What are static variables in c?
What is the difference between text and binary modes?
Write a program to check palindrome number in c programming?
Why doesnt that code work?
What are the two types of structure?
What is the acronym for ansi?
What is dynamic memory allocation?
How do you use a pointer to a function?
Write a Program to find whether the given number or string is palindrome.
How many types of operators are there in c?
Write a program to print “hello world” without using semicolon?