Lim
2
Q:

what is a struct in c++

struct Person
{
    char name[50];
    int age;
    float salary;
};
2
struct product {
  int weight;
  double price;
} apple, banana, melon;
-1

New to Communities?

Join the community