write a fuction for accepting and replacing lowercase
letter to'Z' with out using inline function.

Answers were Sorted based on User's Feedback



write a fuction for accepting and replacing lowercase letter to'Z' with out using inline..

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

write a fuction for accepting and replacing lowercase letter to'Z' with out using inline..

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

write a fuction for accepting and replacing lowercase letter to'Z' with out using inline..

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

write a fuction for accepting and replacing lowercase letter to'Z' with out using inline..

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

write a fuction for accepting and replacing lowercase letter to'Z' with out using inline..

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

Post New Answer

More C Interview Questions

What is the output of below code? main() { static int a=5; printf("%3d",a--); if(a) main(); }

1 Answers  


What is the use of bitwise operator?

0 Answers  


What is the value of c?

0 Answers  


What is Generic pointer? What is the purpose of Generic pointer? Where it is used?

3 Answers  


Can we change the value of constant variable in c?

0 Answers  






Can you pass an entire structure to functions?

0 Answers  


What is quick sort in c?

0 Answers  


How do you redirect a standard stream?

0 Answers  


what is pointer?

4 Answers  


What is break statement?

0 Answers  


The differences between Windows XP and Windows Visa

8 Answers   HCL,


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

0 Answers  


Categories