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

Differentiate between #include<...> and #include '...'

625


What is the difference between array and pointer in c?

590


Why void main is used in c?

566


What is the difference between far and near ?

698


Why string is used in c?

591






What is 'bus error'?

656


What is variables in c?

615


Difference between constant pointer and pointer to a constant.

621


Can we access array using pointer in c language?

652


write a program to create a sparse matrix using dynamic memory allocation.

4379


What are header files? What are their uses?

648


how to introdu5ce my self in serco

1533


pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

2208


What's the right way to use errno?

632


Is main a keyword in c?

646