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
What is void main () in c?
Explain null pointer.
What does main () mean in c?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
Can include files be nested?
#include
Explain the process of converting a Tree into a Binary Tree.
What are linked lists in c?
What is equivalent to ++i+++j?
Explain a pre-processor and its advantages.
Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.
what is the structure pointer?
while initialization of array why we use a[][2] why not a[2][]...?
What is the condition that is applied with ?: Operator?
Why do we use int main instead of void main in c?