write a fuction for accepting and replacing lowercase
letter to'Z' with out using inline function.
Answer Posted / balu
#include<stdio.h>
#include<string.h>
main()
{
char ch;
printf("enter any character:\t");
scanf("%c",&ch);
if(ch>=97&&ch<=122)
{
printf("u enterd small letter \n");
function(ch);
getch();
}
else
printf("you entered the capital letter");
getch();
}
function(ch)
{
char c='z';
printf("replaced lower case letter into uppercase %c",c);
}
Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
Explain the Difference between the New and Malloc keyword.
Explain how are portions of a program disabled in demo versions?
What are global variables and how do you declare them?
Ow can I insert or delete a line (or record) in the middle of a file?
What is typeof in c?
What is c preprocessor mean?
What are the different properties of variable number of arguments?
What math functions are available for integers? For floating point?
Why we use void main in c?
Explain argument and its types.
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.
Explain how can I right-justify a string?
What is c method?
What are shell structures used for?
What is the value of c?