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
What are the applications of c language?
What is identifier in c?
What is a program flowchart and explain how does it help in writing a program?
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
What is break statement?
What is the size of empty structure in c?
Who invented bcpl language?
What is the use of define in c?
Explain about block scope in c?
What is a null pointer in c?
Explain union. What are its advantages?
What is the Purpose of 'extern' keyword in a function declaration?
When do we get logical errors?
How many data structures are there in c?
What is register variable in c language?