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

Is it fine to write void main () or main () in c?

548


What is the difference between Printf(..) and sprint(...) ?

791


Why header files are used?

646


Can you write a programmer for FACTORIAL using recursion?

614


How is a pointer variable declared?

594






What are the different types of objects used in c?

577


Which are low level languages?

636


program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

2578


What is putchar() function?

638


Explain how does free() know explain how much memory to release?

575


Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)

815


What is #include stdio h?

687


How would you obtain the current time and difference between two times?

730


What are the advantages and disadvantages of a heap?

714


What are the different types of endless loops?

624