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 integer constants?
Write a function that accepts two numbers,say a and b and makes bth bit of a to 0.No other bits of a should get changed.
2 Answers Scientific Atlanta, Wipro,
main() { int a=5; printf(?%d,%d,%d\n?,a,a< <2,a>>2); } Answer: 5,20,1 please explain this code in detail
Explain what are the standard predefined macros?
Is null equal to 0 in sql?
main() { int *ptr=(int*)malloc(sizeof(int)); *ptr=4; printf("%d",(*ptr)+++*ptr++); }
5 Answers Vector, Vector Solutions,
c program to manipulate x=1!+2!+3!+...+n! using recursion
? ???Mirror Mirror on the wall????????
True or false: If you continuously increment a variable, it will become negative? 1) True 2) False 3) It depends on the variable type
what is data structure
What is the difference between malloc() and calloc()?
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode