1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include<stdio.h> struct student { char no[10]; }; int main() { struct student stu={ "2018"}; struct student* p=NULL; p=&stu; printf("%s, %s", (*p).no, p.no); }
1 2
In function 'main': Line 13: error: request for member 'no' in something not a structure or union