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
What is atoi and atof in c?
What are pointers? What are stacks and queues?
What is exit() function?
Can a variable be both static and volatile in c?
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
What is c value paradox explain?
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 []);
What is the explanation for cyclic nature of data types in c?
How will you write a code for accessing the length of an array without assigning it to another variable?
What is static function in c?
What is a lvalue
Explain what is wrong with this statement? Myname = ?robin?;
Why do we use int main?
Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
What does c mean in standard form?