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
2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier. Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed. When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed. Sequence of take-off is the sequence of addition to the waitlist
What is dynamic dispatch in c++?
What are the advantages of using macro in c language?
Explain how are 16- and 32-bit numbers stored?
How can I remove the leading spaces from a string?
What is #define?
What happens if a header file is included twice?
HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????
What are the 4 types of functions?
What is static volatile in c?
Write a program to check palindrome number in c programming?
How do you redirect a standard stream?
What is the difference between near, far and huge pointers?
What does 4d mean in c?
Can you please explain the difference between malloc() and calloc() function?