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 / 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 |
Difference Between embedded software and soft ware?
What is type qualifiers?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
What is the usage of the pointer in c?
what wud be the output? main() { char *str[]={ "MANISH" "KUMAR" "CHOUDHARY" }; printf("\nstring1=%s",str[0]); printf("\nstring2=%s",str[1]); printf("\nstring3=%s",str[2]); a)string1=Manish string2=Kumar string3=Choudhary b)string1=Manish string2=Manish string3=Manish c)string1=Manish Kumar Choudhary string2=(null) string3=(null) d)Compiler error
What is the right type to use for boolean values in c?
Is c weakly typed?
two progs are given. one starts counting frm 0 to MAX and the other stars frm MAX to 0. which one executes fast.
#include<stdio.h> void main() { int =1; printf("%d%d%d",a++,++a,++a); }
what are far pointers?
Which of the following sorts is quickest when sorting the following set: 1 2 3 5 4 1) Quick Sort 2) Bubble Sort 3) Merge Sort
What is the difference between %d and %i?