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 atoi and atof in c?

804


What are pointers? What are stacks and queues?

766


What is exit() function?

748


Can a variable be both static and volatile in c?

796


If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402

3564


What is c value paradox explain?

786


write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);

2096


What is the explanation for cyclic nature of data types in c?

869


How will you write a code for accessing the length of an array without assigning it to another variable?

813


What is static function in c?

828


What is a lvalue

861


Explain what is wrong with this statement? Myname = ?robin?;

1320


Why do we use int main?

833


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

855


What does c mean in standard form?

840