void main()
{
static int i = 5;
if(--i)
{
main();
printf("%d
",i);
}
}
what would be output of the above program and justify your
answer?
}
Answer Posted / srsabariselvan
0
0
0
0
static variable's value is stored in memory statically upto
end of the program. so if the variable comes out of the
function it retains its value
| Is This Answer Correct ? | 13 Yes | 5 No |
Post New Answer View All Answers
hi, which software companys will take,if d candidate's % is jst 55%?
Can you explain the four storage classes in C?
struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer
how to make a scientific calculater ?
What are header files in c?
What is page thrashing?
Are global variables static in c?
Why main is not a keyword in c?
Are local variables initialized to zero by default in c?
Why we use int main and void main?
What are the applications of c language?
What is the difference between procedural and declarative language?
How can I insert or delete a line (or record) in the middle of a file?
What is the difference between far and near ?
What are c identifiers?