Answer Posted / pinky
main()
{
char ch;
scanf("%c",&ch);
if(ch>64&&ch<91)
printf("capital");
else
printf("small");
}
in scanf fn. it must be '%c' otherwise the ans wl be 'small'
always (check it)
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Write a program to reverse a given number in c language?
How can you determine the size of an allocated portion of memory?
What is the main difference between calloc () and malloc ()?
Explain the use of fflush() function?
Why is extern used in c?
What is difference between far and near pointers?
Do you have any idea about the use of "auto" keyword?
Why is python slower than c?
Why is it that not all header files are declared in every C program?
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.
How many identifiers are there in c?
What is n in c?
Is main is user defined function?
What is a scope resolution operator in c?