Difference between Class and Struct.
Answer Posted / naksh @tcs
The major difference between struct and class is :
Struct donot contain functions(methods) as its members.
Yes, by default members of struct are public and that of a
class are private.
| Is This Answer Correct ? | 33 Yes | 79 No |
Post New Answer View All Answers
How can you determine the maximum value that a numeric variable can hold?
Is c is a procedural language?
Is c++ based on c?
What is time null in c?
Explain modulus operator.
How many types of arrays are there in c?
what is a function method?give example?
What is the method to save data in stack data structure type?
What does node * mean?
What is variable initialization and why is it important?
What is the use of a static variable in c?
When can a far pointer be used?
how do you programme Carrier Sense Multiple Access
Without Computer networks, Computers will be half the use. Comment.
If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..