write a fuction for accepting and replacing lowercase
letter to'Z' with out using inline function.
Answer Posted / bavi
#include<stdio.h>
main()
{
char ch;
void replet(char);
prinf("Enter the character:");
scanf("%c",&ch);
if(ch>=65&&ch<==90)
{
printf("The character %c entered is UPPERCASE",ch);
replet(ch);
}
else
printf("The given character %c is lowercase",ch);
}
void replet(char ch)
{
ch='Z';
printf("The replaced character is %c",ch);
}
Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
What are variables and it what way is it different from constants?
What are the rules for the identifier?
What is storage class?
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
Why should I use standard library functions instead of writing my own?
Describe wild pointers in c?
What is a null string in c?
How can you check to see whether a symbol is defined?
int far *near * p; means
How do you override a defined macro?
What is c definition?
Explain the binary height balanced tree?
What is a macro in c preprocessor?
write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)