Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What are the parts of c program?

1155


Tell me is null always defined as 0(zero)?

1133


What is volatile, register definition in C

1151


main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none

1410


Add Two Numbers Without Using the Addition Operator

880


What is memcpy() function?

1167


Write a program to check palindrome number in c programming?

1066


How can I check whether a file exists? I want to warn the user if a requested input file is missing.

1205


Why we not create function inside function.

2253


Can you please compare array with pointer?

1153


Write programs for String Reversal & Palindrome check

1137


What is the purpose of scanf() and printf() functions?

1298


What is the condition that is applied with ?: Operator?

1182


How can this be legal c?

1148


What is malloc calloc and realloc in c?

1425