Login
Remember
Register
CodersEditor Q&A
Online IDE
Questions
Unanswered
Tags
Users
Ask a Question
Programming Tutorials
Ask a Question
What is the main difference between the keyword struct and class?
+1
vote
asked
Jan 21, 2021
by
abitha
(
1.6k
points)
c
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jan 21, 2021
by
Inba
(
1.1k
points)
selected
Jan 22, 2021
by
abitha
Best answer
The difference is that struct is public by default and class is private by default
Please
log in
or
register
to add a comment.
Welcome to CodersEditor Q&A, where you can ask questions and receive answers from other members of the community.
239
questions
203
answers
2
comments
692
users
Related questions
What are the difference between C++ and Java?
What are the differences between a shallow copy and a deep copy?
What is the difference between deep and shallow copy?
What is the difference between Assembly language and Machine language?
What is the difference between Array list and vector in Java?
...