Output of the following program?
#include<stdio.h> struct st { int x; struct st next; }; int main() { struct st temp; temp.x=10; temp.next=temp; printf("%d",temp.next,x); return 0; }
struct st next;
This should be a pointer to a struct. A Struct object cannot be inside the struct definition. So this compiler error will be detected first.
64.3k questions
77.9k answers
244k comments
80.0k users