write a fuction for accepting and replacing lowercase
letter to'Z' with out using inline function.
Answer Posted / clement
#include<stdio.h>
#include<string.h>
main()
{
char ch;
clrscr();
printf("enter any character");
scanf("%c",&ch);
if(ch>=97&&ch<=122)
{
printf("u enterd small letter \n");
function(ch);
}
}
function(char c)
{
c='Z';
printf("replaced lower case letter into uppercase %c",c);
}
| Is This Answer Correct ? | 12 Yes | 6 No |
Post New Answer View All Answers
Why do we use static in c?
Do you have any idea about the use of "auto" keyword?
Explain the advantages of using macro in c language?
What is the purpose of clrscr () printf () and getch ()?
the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b
how to print the character with maximum occurence and print that number of occurence too in a string given ?
Write a program to reverse a given number in c language?
Write a program to find the biggest number of three numbers in c?
What is line in c preprocessor?
What is calloc in c?
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.
Can two or more operators such as and be combined in a single line of program code?
Explain how can type-insensitive macros be created?
Why are algorithms important in c program?
main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above