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

int main()
{
unsigned char a = 0;
do {
printf("%d=%c\n",a,a);
a++;
}while(a!=0);
return 0;
} can anyone please explain me output????

Answer Posted / senthilkumar

unsigned char range 0-255. So.. this program prints 0-255 and also equivalent ascii character. ..program is exit after 255...becz after 255 'a' become 0.

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 use of integral promotions in c?

1204


Compare array data type to pointer data type

1077


C language questions for civil engineering

1763


How do you sort filenames in a directory?

1231


Why is not a pointer null after calling free?

1071


How do I copy files?

1103


How do you write a program which produces its own source code as output?

1170


What are the 5 types of organizational structures?

1130


What is the difference between struct and typedef struct in c?

1169


What is difference between structure and union in c?

1034


What is the equivalent code of the following statement in WHILE LOOP format?

1338


Are comments included during the compilation stage and placed in the EXE file as well?

1125


main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

1641


Why is main function so important?

1155


pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

2691