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
I have seen function declarations that look like this
What is the size of structure in c?
What is the correct declaration of main?
What is function in c with example?
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
What is volatile variable in c with example?
Linked lists -- can you tell me how to check whether a linked list is circular?
What is the difference between declaring a variable and defining a variable?
What are the basic data types associated with c?
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
Explain what happens if you free a pointer twice?
What is function definition in c?
State the difference between x3 and x[3].
What is the purpose of main( ) in c language?
swap 2 numbers without using third variable?