I didn't find anything online about what happens when objects are created in C: like their value are initialized or they take garbage value.
#include <stdio.h>
struct temp
{
int a;
} s;
int main()
{
printf("%d", s.a);
}
OUTPUT is : 0
.
So is 0 a garbage value?? Or is it an undefined behavior?