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 does int main () mean?

0 Answers  


Is fortran still used in 2018?

0 Answers  


What does typeof return in c?

0 Answers  


How do you define CONSTANT in C?

0 Answers   ADP,


How to declare a variable?

0 Answers  


a=0; b=(a=0)?2:3; a) What will be the value of b? why b) If in 1st stmt a=0 is replaced by -1, b=? c) If in second stmt a=0 is replaced by -1, b=?

6 Answers   Geometric Software,


How can you determine the size of an allocated portion of memory?

0 Answers   Aspire, Infogain,


Explain what is the benefit of using enum to declare a constant?

0 Answers  


What are types of structure?

0 Answers  


main() { int i = 1; int num[] = {1,2,3,4}; num[i] = i++; printf("%d", num[i]); } what will be the output? }

22 Answers   NDS, TCS,


the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function

0 Answers  


Is return a keyword in c?

0 Answers  


Categories