incompatible types when initializing type ‘float’ using type ‘point {aka struct point}’ code example
Example: incompatible types when initializing type ‘float’ using type ‘point {aka struct point}’
1 #include
2
3 struct student {
4 int id_number;
5 char* year;
6 };
7
8 int main()
9 {
10 struct student foo;
11 int id = foo.id_number;
12 return 0;
13 }