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
Is it fine to write void main () or main () in c?
What is the difference between Printf(..) and sprint(...) ?
Why header files are used?
Can you write a programmer for FACTORIAL using recursion?
How is a pointer variable declared?
What are the different types of objects used in c?
Which are low level languages?
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
What is putchar() function?
Explain how does free() know explain how much memory to release?
Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)
What is #include stdio h?
How would you obtain the current time and difference between two times?
What are the advantages and disadvantages of a heap?
What are the different types of endless loops?