Difference between Class and Struct.
Answer Posted / ajay prajapat
1. Structure is value type where is class is refrance
type.So class data is store in heap where as stuct data are
store in stack.
2. default type of function in struct is public where as
private in class
| Is This Answer Correct ? | 55 Yes | 15 No |
Post New Answer View All Answers
What is static volatile in c?
Explain what does the format %10.2 mean when included in a printf statement?
What is wild pointer in c?
Describe explain how arrays can be passed to a user defined function
What is the right type to use for boolean values in c?
Why do we use pointer to pointer in c?
Can we access array using pointer in c language?
What is the purpose of & in scanf?
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 “****”.
code for replace tabs with equivalent number of blanks
What is indirection in c?
What is typedf?
How can you convert integers to binary or hexadecimal?
Write the test cases for checking a variable having value in range -10.0 to +10.0?
What are the disadvantages of external storage class?