Difference between Class and Struct.
Answer Posted / 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 |
Post New Answer View All Answers
What are directives in c?
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
How can I swap two values without using a temporary?
In which layer of the network datastructure format change is done
What are the c keywords?
Explain why c is faster than c++?
How to find a missed value, if you want to store 100 values in a 99 sized array?
Can we use visual studio for c?
Hi can anyone tell what is a start up code?
What does int main () mean?
console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above
Does * p ++ increment p or what it points to?
What is file in c preprocessor?
Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.
What is pass by reference in c?