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


Please Help Members By Posting Answers For Below Questions

What is void main () in c?

732


Explain null pointer.

622


What does main () mean in c?

615


How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?

614


Can include files be nested?

629






#include { printf("Hello"); } how compile time affects when we add additional header file .

1424


Explain the process of converting a Tree into a Binary Tree.

2104


What are linked lists in c?

651


What is equivalent to ++i+++j?

643


Explain a pre-processor and its advantages.

633


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.

1726


what is the structure pointer?

1644


while initialization of array why we use a[][2] why not a[2][]...?

1866


What is the condition that is applied with ?: Operator?

663


Why do we use int main instead of void main in c?

621