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 use of integral promotions in c?
Compare array data type to pointer data type
C language questions for civil engineering
How do you sort filenames in a directory?
Why is not a pointer null after calling free?
How do I copy files?
How do you write a program which produces its own source code as output?
What are the 5 types of organizational structures?
What is the difference between struct and typedef struct in c?
What is difference between structure and union in c?
What is the equivalent code of the following statement in WHILE LOOP format?
Are comments included during the compilation stage and placed in the EXE file as well?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
Why is main function so important?
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)