What is the difference between Class and Structure?
Answer Posted / rohit patil
Syntax of class
class class_name
{
variable_declaration
function_declaration
};
syntax of structure
struct struc_name
{
variable declaration
};
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Define friend function.
What is a volatile variable in c++?
What are virtual functions in c++?
Can you Mention some Application of C/C++?
What is a null object in c++?
Write a program to find the Fibonacci series recursively.
What is the default access level?
What is the auto keyword good for in c++?
What is the basic structure of c++ program?
How do you compile the source code with your compiler?
Declare a class vehicle and make it an abstract data type.
How do I run c++?
What are the uses of c++ in the real world?
Write a function to find the nth item from the end of a linked list in a single pass.
If you want to share several functions or variables in several files maitaining the consistency how would you share it?