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
An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above
What are the primitive data types in c?
What is string function in c?
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
Write a program to swap two numbers without using a temporary variable?
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
Is fortran faster than c?
What will the code below print when it is executed? int x = 3, y = 4; if (x = 4) y = 5; else y = 2; printf ("x=%d, y=%d ",x,y);
Which is best linux os?
What is volatile c?
How do we print only part of a string in c?
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
Why can arithmetic operations not be performed on void pointers?
How main function is called in c?