Difference between Class and Struct.
Answer Posted / rahul yadav
wrong
structs can also contain functions in C++,
but in C, i ma not sure.
but since we are talking abot Class so we have to answer in
the context of C++,hence the answer is wrong.
only diff is of default variable scope.
| Is This Answer Correct ? | 37 Yes | 27 No |
Post New Answer View All Answers
What does nil mean in c?
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
How to set file pointer to beginning c?
int i=10; printf("%d %d %d", i, i=20, i);
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd
Did c have any year 2000 problems?
What is data structure in c language?
what is use of malloc and calloc?
Explain how can type-insensitive macros be created?
What is huge pointer in c?
Can we replace the struct function in tree syntax with a union?
How are variables declared in c?
write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)
What is a void * in c?
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.