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 |
f(*p) { p=(char *)malloc(6); p="hello"; return; } main() { char *p="bye"; f(p); printf("%s",p); } what is the o/p?
What are the benefits of c language?
int main() { int i=1; switch(i) { case '1': printf("hello"); break; case 1: printf("Hi"); break; case 49: printf("Good Morning"); break; } return 0; }
How do I copy files?
What is the use of header?
What is the difference between a free-standing and a hosted environment?
What is the difference between strcpy() and memcpy() function in c programming?
Why do we use header files in c?
What are types of functions?
What is a structure member in c?
write a function that accepts an array A with n elements and array B with n-1 elements. Find the missing one in array B,with an optimized manner?
Write a program that can show the multiplication table.