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


Please Help Members By Posting Answers For Below Questions

What are the applications of c language?

731


What is identifier in c?

653


What is a program flowchart and explain how does it help in writing a program?

789


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?

752


What is break statement?

728






What is the size of empty structure in c?

683


Who invented bcpl language?

810


What is the use of define in c?

696


Explain about block scope in c?

754


What is a null pointer in c?

703


Explain union. What are its advantages?

704


What is the Purpose of 'extern' keyword in a function declaration?

740


When do we get logical errors?

725


How many data structures are there in c?

705


What is register variable in c language?

698