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
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.
Explain what is meant by 'bit masking'?
What is the difference between void main and main in c?
Why clrscr is used after variable declaration?
Explain bitwise shift operators?
If fflush wont work, what can I use to flush input?
Is c easy to learn?
stripos ā Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.
Which are low level languages?
What is nested structure in c?
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
Is null always equal to 0(zero)?
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....
What is difference between && and & in c?
How can I read a binary data file properly?