A
aarklon
Hi all,
why the following structure initialization is not valid
#include<stdio.h>
struct rec
{
char name[10];
int age;
};
struct rec r;
int main(void)
{
r = {"Tom",32};
puts(r.name);
return 0;
}
why the following structure initialization is not valid
#include<stdio.h>
struct rec
{
char name[10];
int age;
};
struct rec r;
int main(void)
{
r = {"Tom",32};
puts(r.name);
return 0;
}