Predict the output of below code:
#include‹stdio.h›
int main()
{
struct site
{
char name[] = "GeeksforGeeks";
int no_of_pages = 200;
};
struct site *ptr;
printf("%d",ptr->no_of_pages);
printf("%s",ptr->name);
getchar();
return 0;
}
- GeeksforGeeks
- Compilation Error
- Runtime Error
- Geeks
Correct Answer:
Compilation Error
need an explanation for this answer? contact us directly to get an explanation for this answer