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
What are the 3 types of structures?
What are the 5 organizational structures?
What is typedf?
Is there anything like an ifdef for typedefs?
How can a program be made to print the line number where an error occurs?
Explain how can you tell whether a program was compiled using c versus c++?
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,
Give the rules for variable declaration?
Write a code on reverse string and its complexity.
The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
What are the application of void data type in c?
write a program to rearrange the array such way that all even elements should come first and next come odd
What is a shell structure examples?
What is structure in c explain with example?