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

What is the purpose of sprintf() function?

1117


write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1

3939


What is LINKED LIST? How can you access the last element in a linked list?

1070


What is void main ()?

1075


Is there a way to compare two structure variables?

1111


What is sizeof in c?

1007


the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above

1247


What is function and its example?

1209


What is the deal on sprintf_s return value?

1129


What is modifier & how many types of modifiers available in c?

1026


What is volatile variable how do you declare it?

1097


Difference between Shallow copy and Deep copy?

2019


Is multithreading possible in c?

1007


Why does everyone say not to use scanf? What should I use instead?

1422


State two uses of pointers in C?

1055