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



int main() { unsigned char a = 0; do { printf("%d=%c\n",a,a); a++; }while(a!=0); r..

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

More C Interview Questions

What are directives in c?

0 Answers  


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

1 Answers   Mind Tree,


struct ptr { int a; char b; int *p; }abc; what is d sizeof structure without using "sizeof" operator??

9 Answers   Verifone,


how to find the largest element of array without using relational operater?

6 Answers   Satyam, Wipro,


Write a code to remove duplicates in a string.

0 Answers   Expedia,


How would you use the functions fseek(), freed(), fwrite() and ftell()?

0 Answers   Aspire, Infogain, TISL,


char *p="name"; printf(p);

1 Answers  


write a program for egyptian fractions in c?

1 Answers   Satyam,


What will be the output of following program #include main() { int x,y = 10; x = y * NULL; printf("%d",x); }

1 Answers  


What does the function toupper() do?

0 Answers  


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

0 Answers  


what is the differance between pass by reference and pass by value.

7 Answers   Infosys,


Categories