Why this shows error in this question?But it shows the result.
1 #include<stdio.h>
2 struct student
3 {
4 int id;
5 char *name;
6 float percentage;
7 }student1,student2,student3;
8
9 int main()
10 {
11 struct student st;
12 student1.id=1;
13 student2.name=”Angelina”;
14 student3.percentage=90.5;
15 printf(“Id is :%d \n”,student1.id);
16 printf(“Name is :%s \n”,student2.name);
17 printf(“Percentage is :%f\n”,student3.percentage);
18 getc();
19 return 0;
20 }
assstr1.c:20:2: error: too few arguments to function ‘_IO_getc’
/usr/include/libio.h:462:12: note: declared here
make: *** [assstr1] Error 1