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...

What is the output of the program given below

#include<stdio.h>
main()
{
char i=0;
for(;i>=0;i++) ;
printf("%d\n",i);
}

Answer Posted / akash dhal

initialized with 0
in for loop ist time condition satisfied so print 0,like
this 127 will be printed .as it is a signed no. so 127+1 is
-128 so condition false come out of the loop.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between fread buffer() and fwrite buffer()?

1188


What is the difference between the expression “++a” and “a++”?

1236


Differentiate between ordinary variable and pointer in c.

1189


What is the purpose of sprintf?

1143


What is pointer in c?

1206


develop algorithms to add polynomials (i) in one variable

2175


Explain about the functions strcat() and strcmp()?

1058


What are the main characteristics of c language describe the structure of ac program?

1218


Why do we need volatile in c?

1183


When should a far pointer be used?

1140


Explain how do you print an address?

1148


What are conditional operators in C?

1106


Explain what is the most efficient way to store flag values?

1232


Why isn't any of this standardized in c? Any real program has to do some of these things.

1223


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

2163