Q:

Predict the output of below code:

0

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; 
} 

  1. GeeksforGeeks
  2. Compilation Error
  3. Runtime Error
  4. Geeks

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Correct Answer:

Compilation Error

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Size of the array need not be specified, when... >>
<< Predict the output of below code:...