What is the Difference between Class and Struct?
Answer Posted / ashish srivastava
by default
struct elements are public
while
class elements are private
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
Explain what are preprocessor directives?
What is a pointer in c?
What is the explanation for cyclic nature of data types in c?
What is modeling?
What is the use of printf() and scanf() functions?
write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34
Tell me what is the purpose of 'register' keyword in c language?
What is function prototype?
Why do we use namespace feature?
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
How can I do graphics in c?
ATM machine and railway reservation class/object diagram
What is merge sort in c?
Is c call by value?
what are the advantages of a macro over a function?