for(i=1;i>0;i++);
printf("i=%d",i);
what will be the answer????

Answer Posted / ankit shekhavat

after for lop,there is a semicolon.it means loop terminate
here..condition inside the loop will always true.so it will
be an infinite loop..nothing will be printed on the screen.
for next statement there will be printed any garbage value...

Is This Answer Correct ?    7 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you write the algorithm for Queue?

1532


What is data type long in c?

592


What is Dynamic memory allocation in C? Name the dynamic allocation functions.

520


What is c language used for?

532


What is the function of volatile in c language?

640






In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)

1610


What does %d do?

687


What does static variable mean in c?

621


Explain how can I manipulate strings of multibyte characters?

753


How do you initialize pointer variables?

578


how to capitalise first letter of each word in a given string?

1405


What is indirection?

624


A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none

709


the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters

1766


Differentiate Source Codes from Object Codes

787