write a fuction for accepting and replacing lowercase
letter to'Z' with out using inline function.
Answers were Sorted based on User's Feedback
Answer / sandhya.kakani
#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)
{
char c='z';
printf("replaced lower case letter into uppercase %c",c);
}
Is This Answer Correct ? | 19 Yes | 8 No |
Answer / bavi
#include<stdio.h>
main()
{
char ch;
void replet(char);
prinf("Enter the character:");
scanf("%c",&ch);
if(ch>=65&&ch<==90)
{
printf("The character %c entered is UPPERCASE",ch);
replet(ch);
}
else
printf("The given character %c is lowercase",ch);
}
void replet(char ch)
{
ch='Z';
printf("The replaced character is %c",ch);
}
Is This Answer Correct ? | 10 Yes | 1 No |
Answer / 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 |
Answer / 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 |
Answer / dhakchina moorthy.p
#include<stdio.h>
main()
{
char ch;
void replet(char);
prinf("Enter the character:");
scanf("%c",&ch);
if(ch>=65&&ch<==90)
{
printf("The character %c entered is lowercase",ch);
replet(ch);
}
else
printf("The given character %c is uppercase",ch);
}
void replet(char ch)
{
ch='Z';
printf("The replaced character is %c",ch);
}
Is This Answer Correct ? | 4 Yes | 7 No |
What is the output of below code? main() { static int a=5; printf("%3d",a--); if(a) main(); }
What is the use of bitwise operator?
What is the value of c?
What is Generic pointer? What is the purpose of Generic pointer? Where it is used?
Can we change the value of constant variable in c?
Can you pass an entire structure to functions?
What is quick sort in c?
How do you redirect a standard stream?
what is pointer?
What is break statement?
The differences between Windows XP and Windows Visa
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile