Aditi
Company
Category
function main()
{
static integer abc=5
print abc-
if(abc)
main()//calling main function
}
a)43210
b)54321
c)this code under infinite loop
d)this code generates error
Read Solution (Total 3)
-
- I think ans is 43210...
since the variable is static and if loop stops after its condition becomes false.
- 10 years agoHelpfull: Yes(0) No(0)
- ans c
this code generates infinite loop since there is no termination - 10 years agoHelpfull: Yes(0) No(0)
- ans =54321
- 9 years agoHelpfull: Yes(0) No(0)
Aditi Other Question