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

1022


What is the c value paradox and how is it explained?

1047


What is a rvalue?

1201


Is linux written in c?

1038


How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?

1025


what is a NULL Pointer? Whether it is same as an uninitialized pointer?

1265


What are the different types of control structures?

1040


Which is best book for data structures in c?

1091


Are the expressions * ptr ++ and ++ * ptr same?

1145


What are the parts of c program?

1101


How does sizeof know array size?

1111


Does c have class?

1101


Why is C language being considered a middle level language?

1117


What is the use of getchar() function?

1125


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

1145