WAP to find that given no is small or capital

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


Please Help Members By Posting Answers For Below Questions

What are pointers? What are different types of pointers?

622


What is the difference between malloc() and calloc()?

613


What is the difference between mpi and openmp?

727


Add Two Numbers Without Using the Addition Operator

351


Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings

2243






What is sizeof array in c?

588


Why do we use null pointer?

601


‎How to define structures? · ‎

622


How do you declare a variable that will hold string values?

663


What is a lvalue

656


What is uint8 in c?

635


What is the ANSI C Standard?

774


What is bubble sort technique in c?

586


Can you write a programmer for FACTORIAL using recursion?

606


Write a program to print "hello world" without using a semicolon?

591