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 |
When should a type cast be used?
sum of two integers values only other then integer it should print invalid input.
Find the middle node in the linked list?? (Note:Do not use for loop, count and count/2)
what is the purpose of the code, and is there any problem with it. unsigned int v[10]; unsigned int i = 0; while (i < 10) v[i] = i++;
What is anagram in c?
What is break in c?
Under what circumstances does a name clash occur?
What is the purpose of clrscr () printf () and getch ()?
What is #include stdio h and #include conio h?
CopyBits(x,p,n,y) copy n LSBs from y to x starting LSB at 'p'th position.
How to add two numbers without using arithmetic operators?
18 Answers College School Exams Tests, e track, Infosys, Pan Parag, Sapient, TCS,
#include<stdio.h> #include<conio.h> # define swap(a,b) temp=a; a=b; b=temp; void main( ) { int i, j, temp; i=5; j=10; temp=0; if( i > j) swap( i, j ); printf( "%d %d %d", i, j, temp); }