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
Can we use any name in place of argv and argc as command line arguments?
How can I invoke another program or command and trap its output?
Explain what is wrong with this statement? Myname = ?robin?;
What are local variables c?
Explain what is page thrashing?
code for quick sort?
Stimulate calculator using Switch-case-default statement for two numbers
Explain about block scope in c?
What is typeof in c?
What is methods in c?
How will you declare an array of three function pointers where each function receives two ints and returns a float?
Explain what is wrong with this program statement?
Not all reserved words are written in lowercase. TRUE or FALSE?
What is c system32 taskhostw exe?
What are the storage classes in C?