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
Why header file is used in c?
Is there a way to jump out of a function or functions?
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
Can we compile a program without main() function?
Is c language still used?
How can you access memory located at a certain address?
Write a program to check prime number in c programming?
Explain can the sizeof operator be used to tell the size of an array passed to a function?
What is the use of a ‘ ’ character?
write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a
What are data structures in c and how to use them?
Explain can static variables be declared in a header file?
what value is returned to operating system after program execution?
What are examples of structures?
Can we add pointers together?