void main()
{
//char ch;
unsigned char ch;
clrscr();
for(ch =0;ch<= 127; ch++)
printf(" %c= %d \t ", ch, ch);
}
output?
Answer Posted / sorab aggarwal
It will print all the characters including(special characters,a to z,A to Z characters)from 0 to 127 range becoz "Ch"variable in unsigned nature so it only deals with positive range not negative ..
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Differentiate between #include<...> and #include '...'
What is the difference between array and pointer in c?
Why void main is used in c?
What is the difference between far and near ?
Why string is used in c?
What is 'bus error'?
What is variables in c?
Difference between constant pointer and pointer to a constant.
Can we access array using pointer in c language?
write a program to create a sparse matrix using dynamic memory allocation.
What are header files? What are their uses?
how to introdu5ce my self in serco
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
What's the right way to use errno?
Is main a keyword in c?