Why the error ?Code:#include<stdio.h> struct class { int number; char name[20]; struct jow { int num; char word[10]; }; float marks; }; int main() { struct class student[2]={{111, "rao", 22.50}, {222,"gto", 22.5}}; struct jow teach={10, "ann"}; printf("%s\n", student[1].teach.names); return 0; }



1Likes
LinkBack URL
About LinkBacks



I used to be an adventurer like you... then I took an arrow to the knee.