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
What are unions in c?
What does the error 'Null Pointer Assignment' mean and what causes this error?
Can you please explain the difference between exit() and _exit() function?
How many loops are there in c?
what will be the output for the following main() { printf("hi" "hello"); }
explain what is an endless loop?
What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }
What is time complexity c?
What is this pointer in c plus plus?
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
how logic is used
Write program to remove duplicate in an array?
What are comments and how do you insert it in a C program?
What does != Mean in c?
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?