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 is the main use of c where it can use the c

2 Answers   Infosys,


What is difference between scanf and gets?

0 Answers  


A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers

0 Answers  


whats the use of header file in c?

2 Answers  


Write a C program to count the number of email on text

0 Answers  






in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures

0 Answers  


Where in memory are my variables stored?

0 Answers  


How can you read a directory in a C program?

0 Answers  


which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above

0 Answers  


What is the difference between variable declaration and variable definition in c?

0 Answers  


simple program of graphics and thier outpu display with a want what is out put of graohics in c language

1 Answers   CSC, HCL,


Input any no. and print all the the numbers that comes before it like this for e.g input = 4 0 01 012 0123 01234 plz answer it 2day

3 Answers  


Categories