Difference between Class and Struct.
Answers were Sorted based on User's Feedback
Answer / ravish
Structure is a value type variable, but a class is a
reference type variable.
We can create an object of a class but not for a structure.
Structures does not have function definition but a class has..
| Is This Answer Correct ? | 6 Yes | 7 No |
Answer / farhat khan
In C struct does not use function(method).
| Is This Answer Correct ? | 6 Yes | 10 No |
Answer / 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 |
Is c still used in 2019?
can any one tel me wt is the question pattern for NIC exam
c program to print a name without using semicolon
What are runtime error?
Can we declare variable anywhere in c?
c program to manipulate x=1!+2!+3!+...+n! using recursion
is forign key will be unique key any table or not?
What is variables in c?
Explain how can type-insensitive macros be created?
What are 3 types of structures?
Explain the difference between #include "..." And #include <...> In c?
Find MAXIMUM of three distinct integers using a single C statement