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


Please Help Members By Posting Answers For Below Questions

What are variables and it what way is it different from constants?

786


What are the rules for the identifier?

672


What is storage class?

654


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

713


Why should I use standard library functions instead of writing my own?

674






Describe wild pointers in c?

640


What is a null string in c?

589


How can you check to see whether a symbol is defined?

592


int far *near * p; means

3122


How do you override a defined macro?

702


What is c definition?

747


Explain the binary height balanced tree?

726


What is a macro in c preprocessor?

631


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.

14964


pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

2201