#include<stdio.h>
int fun();
int i;
int main()
{
while(i)
{
fun();
main();
}
printf("hello \n");
return 0;
}
int fun()
{
printf("hi");
}
answer is hello.how??wat is tat while(i) mean?

Answer Posted / tatukula

in above program variable 'i' is declared as global integer ..so i=0...thats why while() condition gets failed and
prints 'hello'

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is c still so popular?

618


Why isn't it being handled properly?

645


How many parameters should a function have?

668


Do you know what are bitwise shift operators in c programming?

585


What are the benefits of organizational structure?

574






What is the meaning of ?

622


On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area

664


Distinguish between actual and formal arguments.

591


What is page thrashing?

653


Can you please explain the scope of static variables?

602


Differentiate between declaring a variable and defining a variable?

607


What is a sequential access file?

648


What is c definition?

746


What are pointers? Why are they used?

632


Is fortran still used in 2018?

595