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

how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

1498


hi, which software companys will take,if d candidate's % is jst 55%?

1666


what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555

2537


What is meant by recursion?

632


Is c dynamically typed?

668






What kind of structure is a house?

557


How does #define work?

651


Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer

3844


What are global variables?

649


Explain what is wrong with this program statement? Void = 10;

766


Differentiate between calloc and malloc.

761


Explain how can you determine the size of an allocated portion of memory?

625


How can I check whether a file exists? I want to warn the user if a requested input file is missing.

657


What is the use of a static variable in c?

595


what is the significance of static storage class specifier?

1666