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
What is stoi in c++?
Can I learn c++ without learning c?
What does it mean to declare a member variable as static?
What is the auto keyword good for in c++?
What are c++ storage classes?
Mention the ways in which parameterized can be invoked.
Why is main an int?
Is c++ harder than java?
What is the difference between global variables and static varables?
Is c++ pass by reference or value?
I want to write a C++ language program that: 1. Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. The program should work for squares of all side sizes between 1 and 20.
Why should we use null or zero in a program?
Which software is used for c++ programming?
When do we run a shell in the unix system? How will you tell which shell you are running?
What is expression parser in c++