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 / karan

it will display the garbage value bcoz there is semicolon
at end of the for loop which will be
-128

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What language is lisp written in?

1189


Who invented bcpl language?

1134


which is conditional construct a) if statement b) switch statement c) while/for d) goto

1176


What are the parts of c program?

1056


Write the test cases for checking a variable having value in range -10.0 to +10.0?

2282


What is the difference between strcpy() and memcpy() function in c programming?

1045


What are header files? What are their uses?

1145


What is getch c?

1256


How can I read in an object file and jump to locations in it?

999


Why do we use header files in c?

1036


What is memcpy() function?

1063


please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

2144


Is c easier than java?

1009


Does free set pointer to null?

968


How can variables be characterized?

2141