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 does it mean when the linker says that _end is undefined?
What is the difference between declaring a variable and defining a variable?
How can you draw circles in C?
Tell me the use of bit field in c language?
What is extern variable in c with example?
Is exit(status) truly equivalent to returning the same status from main?
What is a MAC Address?
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
what is a NULL Pointer? Whether it is same as an uninitialized pointer?
hi, which software companys will take,if d candidate's % is jst 55%?
What is floating point constants?
What are the __date__ and __time__ preprocessor commands?
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?
GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA
What does nil mean in c?