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
define string ?
What is far pointer in c?
Are c and c++ the same?
What are unions in c?
What are the different types of pointers used in c language?
Tell us bitwise shift operators?
What is f'n in math?
Why is structure padding done in c?
What is dynamic variable in c?
How do I use strcmp?
Where are c variables stored in memory?
What is size of union in c?
Explain the red-black trees?
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
What is the use of function in c?