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


Please Help Members By Posting Answers For Below Questions

Explain the Difference between the New and Malloc keyword.

688


Explain how are portions of a program disabled in demo versions?

655


What are global variables and how do you declare them?

621


Ow can I insert or delete a line (or record) in the middle of a file?

576


What is typeof in c?

609






What is c preprocessor mean?

795


What are the different properties of variable number of arguments?

669


What math functions are available for integers? For floating point?

625


Why we use void main in c?

597


Explain argument and its types.

605


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.

1594


Explain how can I right-justify a string?

625


What is c method?

537


What are shell structures used for?

600


What is the value of c?

574