Computer Science, asked by menakshi6654, 10 months ago

What are the differences between a c++ struct and c++ class?

Answers

Answered by anupama777vidya
1

Answer:

The main difference between a struct and a class is:

  • Struct members are public by default
  • Class members are private by default.

Hope it helps....

Plz mark as brainliest..

Similar questions