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 happens if header file is included twice?

0 Answers  


Explain function?

0 Answers  


c pgm count no of lines , blanks, tabs in a para(File concept)

2 Answers  


What is wild pointer in c?

0 Answers  


write a program to display the array elements in reverse order in c language

16 Answers  






What are preprocessor directives?

0 Answers  


How do you redirect a standard stream?

0 Answers  


write a program to swap two numbers without using temporary variable?

3 Answers  


What is character constants?

0 Answers  


What is main void in c?

1 Answers  


How are Structure passing and returning implemented by the complier?

0 Answers   TISL,


why programs in c are running with out #include<stdio.h>? some warnings are display in terminal but we execute the program we get answer why? eg: main() { printf("hello world "); }

0 Answers  


Categories