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


Please Help Members By Posting Answers For Below Questions

What are the 3 types of structures?

572


What are the 5 organizational structures?

569


What is typedf?

670


Is there anything like an ifdef for typedefs?

702


How can a program be made to print the line number where an error occurs?

650






Explain how can you tell whether a program was compiled using c versus c++?

578


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

1892


Give the rules for variable declaration?

678


Write a code on reverse string and its complexity.

608


The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this

2935


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 “****”.

2649


What are the application of void data type in c?

712


write a program to rearrange the array such way that all even elements should come first and next come odd

1760


What is a shell structure examples?

590


What is structure in c explain with example?

638