write a fuction for accepting and replacing lowercase
letter to'Z' with out using inline function.
Answer Posted / dhakchina moorthy.p
#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 lowercase",ch);
replet(ch);
}
else
printf("The given character %c is uppercase",ch);
}
void replet(char ch)
{
ch='Z';
printf("The replaced character is %c",ch);
}
| Is This Answer Correct ? | 4 Yes | 7 No |
Post New Answer View All Answers
What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers
What are loops c?
List the different types of c tokens?
When we use void main and int main?
Tell me the use of bit field in c language?
What are the similarities between c and c++?
Is multithreading possible in c?
Ow can I insert or delete a line (or record) in the middle of a file?
What are valid signatures for the Main function?
What are the 5 data types?
Suggesting that there can be 62 seconds in a minute?
Difference between goto, long jmp() and setjmp()?
Mention four important string handling functions in c languages .
WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above