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 does malloc () calloc () realloc () free () do?
What should malloc() do? Return a null pointer or a pointer to 0 bytes?
What are data structures in c and how to use them?
Are there any problems with performing mathematical operations on different variable types?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
write an interactive C program that will encode or decode a line of text.To encode a line of text,proceed as follows. 1.convert each character,including blank spaces,to its ASCII equivalent. 2.Generate a positive random integer.add this integer to the ASCII equivalent of each character.The same random integer will be used for the entire line of text. 3.Suppose that N1 represents the lowest permissible value in the ASCII code,and N2 represents the highest permissible value.If the number obtained in step 2 above(i.e.,the original ASCII equivalent plus the random integer)exceeds N2,then subtract the largest possible multiple of N2 from this number,and add the remainder to N1.Hence the encoded number will always fall between N1 and N2,and will therefore always represent some ASCII character. 4.Dislay the characters that correspond to the encoded ASCII values. The procedure is reversed when decoding a line of text.Be certain,however,that the same random number is used in decodingas was used in encoding.
code for find determinent of amatrix
What is calloc malloc realloc in c?
What will be your course of action for a push operation?
Explain what is output redirection?
Why is this loop always executing once?
Why pointers are used in c?
In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.
What is the use of ?: Operator?
What are global variables?