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
Multiply an Integer Number by 2 Without Using Multiplication Operator
What is the difference between Printf(..) and sprint(...) ?
Can we declare variable anywhere in c?
in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures
What is file in c language?
Explain Basic concepts of C language?
What is an array? What the different types of arrays in c?
Explain how do you generate random numbers in c?
What are c preprocessors?
What are the different types of endless loops?
What is the use of function overloading in C?
GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA
difference between native and cross compilers
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }
What are reserved words with a programming language?