1
0
simply it is same as 4+3+2+1+0=10 since i=0.1.2.3.4
0
j = 10 (0+1+2+3+4); static int's scope is within the function block; but its lifetime is from the time its declared till the end of the program/ throughout the program. Think of static variables like variables which become invisible (i.e) static variable declarations become invisible after declaring, and when functions are called again these declarations are not seen/taken into account by the compiler eg:"recursion".
0
j=10