accept character from keyboard untill the user presses the
enter key.If the user enters any character other than upper
case(A-Z)alphabets program should stop taking any input
Answer Posted / shrikantauti
use if condition
if(ch>=65 &&ch<=90)
{
scanf("%c",&ch);
}
else
{
break;
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can an array be an Ivalue?
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
Why does this code crash?
Explain how can I avoid the abort, retry, fail messages?
What is the difference between array and linked list in c?
How can a string be converted to a number?
What is function prototype in c with example?
What is pointer to pointer in c?
What are the back slash character constants or escape sequence charactersavailable in c?
What are c identifiers?
Why do we need arrays in c?
How can you find the exact size of a data type in c?
Is exit(status) truly equivalent to returning the same status from main?
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
Explain how are portions of a program disabled in demo versions?