What is the Difference between Class and Struct?
Answer Posted / satvir kaur
STRUCTURE CLASS
1.structure by default is 1. class by default is private
public.
2.structure does not 2.class provide data hiding.
provide data hiding.
3.A structure would be the 3.class would be the collection
collection of related data. of data & code which handels
data.
CAN U TELL ME MORE DIFFERENCE BETWEEN LIKE THIS PLZ TELL ME
AS EARLY AS POSSIBLE I AM WAITING
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
Does c have circular shift operators?
What are the advantages and disadvantages of c language?
Why do some versions of toupper act strangely if given an upper-case letter?
How is a macro different from a function?
What is pre-emptive data structure and explain it with example?
Explain how does flowchart help in writing a program?
Where are the auto variables stored?
What are the c keywords?
How to write a code for reverse of string without using string functions?
In a switch statement, what will happen if a break statement is omitted?
Why static variable is used in c?
Describe the order of precedence with regards to operators in C.
What is nested structure with example?
What is the size of structure pointer in c?
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);