Warning: implode(): Invalid arguments passed in /www/wwwroot/jobquiz.info/mdiscuss.php on line 336 Point out the error in the following program. #include<stdio.h> struct emp { char name[20]; int age; }; int main() { emp int xx; int a; printf("%d\n", &a); return 0; } ?->(Show Answer!)
1. Point out the error in the following program. #include<stdio.h> struct emp { char name[20]; int age; }; int main() { emp int xx; int a; printf("%d\n", &a); return 0; }
Ask Your Doubts Here
Comments
By: guest on 01 Jun 2017 06.01 pm
There is an error in the line emp int xx; To overcome this error, remove the int and add the struct at the begining of emp int xx; #include<stdio.h>struct emp { char name[20]; int age; }; int main() { struct emp xx; int a; printf("%d\n", &a); return0; }