Top

Discussion

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

 

  • A.GeeksforGeeks
  • B.Compilation Error
  • C.Runtime Error
  • D.Geeks

Answer: B

No answer description available for this question.

No comment is present. Be the first to comment.
Loading…

Post your comment