0 votes 0 votes #include<stdio.h> int main() { int i=10; static int x=i; if(x==i) printf("Equal"); else if(x>i) printf("Greater"); else printf("Lesser"); return 0; } (a) Equal (b) Greater (c) Lesser (d) Compile Error Programming in C programming-in-c output interview + – Desert_Warrior asked May 16, 2016 Desert_Warrior 1.6k views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply Desert_Warrior commented May 16, 2016 reply Follow Share Equal ? 1 votes 1 votes shivanisrivarshini commented May 16, 2016 reply Follow Share Yes we get equal 0 votes 0 votes Please log in or register to add a comment.
Best answer 4 votes 4 votes Answer will be D) Compile Error Error in this line static int x = i; You can not initialize a static variable with a variable. It should be constant or symbolic constant. rude answered May 17, 2016 • selected May 17, 2016 by Desert_Warrior rude comment Share Follow See all 0 reply Please log in or register to add a comment.