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 / shrikantauti
use if condition
if(ch>=65 &&ch<=90)
{
scanf("%c",&ch);
}
else
{
break;
}
Is This Answer Correct ? | 1 Yes | 0 No |
what is the defrenece between structure and union
What is Conio.h ?
main() { int a,b; printf("%d,%d",scanf("%d%d",&a,&b)); } => do u mean above program's output... =>output will be:2,whatever you enter value for b. =>because scanf is a library fn which will return how many arguements it processes, and second value you are right mr.Satya but i found my self unable to understand that for the first time scanf returns the no of successful matches but how for the second time it returns the value of 'b'.while a function should return the same 'r' value every time.
1)which of following operator can't be overloaded. a)== b)++ c)?! d)<=
What is the purpose of macro in C language?
What is a program?
How do I access command-line arguments?
What is d scanf?
What is "Hungarian Notation"?
An entire structure variable can be assigned to another structure variable if __________
3 Answers Sasken, TCS, Tech Mahindra, Wipro,
What is the explanation for cyclic nature of data types in c?
what are # pragma staments?