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
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
What is the scope of static variable in c?
Do you know pointer in c?
What is ## preprocessor operator in c?
Is c is a middle level language?
What is an identifier?
What is function in c with example?
Array is an lvalue or not?
Do pointers store the address of value or the actual value of a variable?
What are local variables c?
What is || operator and how does it function in a program?
write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.
In which layer of the network datastructure format change is done
Why pointers are used in c?
What is pointer in c?