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 is #line in c?
What is pragma in c?
How macro execution is faster than function ?
application attempts to perform an operation?
Explain what are bus errors, memory faults, and core dumps?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
Can you subtract pointers from each other? Why would you?
What is mean by data types in c?
Explain what are multidimensional arrays?
Can variables be declared anywhere in c?
When is the “void” keyword used in a function?
Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.
What are c header files?
Can you add pointers together? Why would you?