0

My struct is as follow.

typedef struct user {
   char *name;
   int age;
} User;

Now when I am creating an array, I wonder what is the different between below both statments.

User users[10];

vs

User users[10] = {};
fSazy
  • 326
  • 1
  • 4
  • 16

1 Answers1

0

The first (User users[10];) do not erase the flash or memory so it is possibel that you have things on this memory from the Programm befor

LFS96
  • 856
  • 1
  • 12
  • 23