2 votes 2 votes Void fun(){ int i=0; Printf("%d", i); Static in j=12; // this is error to declare here right????? J=j+1; } Programming in C programming-in-c + – akankshadewangan24 asked Jan 18, 2018 akankshadewangan24 497 views answer comment Share Follow See all 7 Comments See all 7 7 Comments reply Show 4 previous comments joshi_nitish commented Jan 18, 2018 reply Follow Share because, every variable should be declared before its usage, else it will give semantic error. print(j) is used before declaration of static int j; 2 votes 2 votes Anu007 commented Jan 18, 2018 reply Follow Share static int j; memory allocated at compile time isnt? compiler know about variable at compile time isnt? if it was int j ; then i am ok that it will be semantic error. 1 votes 1 votes akankshadewangan24 commented Jan 18, 2018 reply Follow Share So this will give compile time error right?????? 0 votes 0 votes Please log in or register to add a comment.