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
How do you clear a set in c++?
What are pointers used for c++?
What is size_type?
Is c++ used anymore?
What is a literal in c++?
Explain the difference between static and dynamic binding of functions?
Is ca high or low level language?
Explain the isa and hasa class relationships. How would you implement each?
Explain "const" reference arguments in function?
How to declare a function pointer?
Assume studentNames and studentIDs are two parallel arrays of size N that hold student data. Write a pseudocode algorithm that sorts studentIDs array in ascending ID number order such that the two arrays remain parallel.
What is else if syntax?
What is encapsulation in C++? Give an example.
What is singleton class in c++?
Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?