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 is the purpose of sprintf() function?
write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1
What is LINKED LIST? How can you access the last element in a linked list?
What is void main ()?
Is there a way to compare two structure variables?
What is sizeof in c?
the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above
What is function and its example?
What is the deal on sprintf_s return value?
What is modifier & how many types of modifiers available in c?
What is volatile variable how do you declare it?
Difference between Shallow copy and Deep copy?
Is multithreading possible in c?
Why does everyone say not to use scanf? What should I use instead?
State two uses of pointers in C?