+ 3

What is structure?

2nd Feb 2018, 5:52 AM
Puneet Bhardwaj
Puneet Bhardwaj - avatar
2 Answers
+ 3
It works the same as a class in C++ but with all public members.
2nd Feb 2018, 11:19 AM
Jacob Pembleton
Jacob Pembleton - avatar
+ 2
A structure is a user-defined datatype in C and C++, which allows you to store different atomic datatypes under a same name
2nd Feb 2018, 6:28 AM
Mohit Ranjan
Mohit Ranjan - avatar