Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Can we use any name in place of argv and argc as command line arguments?

1045


How can I invoke another program or command and trap its output?

1066


Explain what is wrong with this statement? Myname = ?robin?;

1543


What are local variables c?

979


Explain what is page thrashing?

1065


code for quick sort?

1994


Stimulate calculator using Switch-case-default statement for two numbers

2936


Explain about block scope in c?

1054


What is typeof in c?

970


What is methods in c?

1044


How will you declare an array of three function pointers where each function receives two ints and returns a float?

1319


Explain what is wrong with this program statement?

1086


Not all reserved words are written in lowercase. TRUE or FALSE?

1202


What is c system32 taskhostw exe?

990


What are the storage classes in C?

1122