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

127.As i is a char the last digit would be 127,so the loop
stops at that point.
I crosschecked it writing a program.

Is This Answer Correct ?    1 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between new and malloc in C?

1150


Is c dynamically typed?

1164


What is the usage of the pointer in c?

1141


Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

1096


How can you increase the allowable number of simultaneously open files?

1164


Difference between Function to pointer and pointer to function

1089


how to write a c program to print list of fruits in alpabetical order?

2306


What is the difference between abs() and fabs() functions?

1135


How the c program is executed?

1162


c program to compute AREA under integral

2408


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

1150


What is s or c?

1066


Why n++ execute faster than n+1 ?

3020


You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.

2340


What are the types of c language?

1037