write a fuction for accepting and replacing lowercase
letter to'Z' with out using inline function.
Answer Posted / 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 |
Post New Answer View All Answers
When is a “switch” statement preferable over an “if” statement?
How can I change the size of the dynamically allocated array?
What are the 4 types of unions?
What is the difference between test design and test case design?
Explain function?
Where we use clrscr in c?
What do you mean by a sequential access file?
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
What are the different properties of variable number of arguments?
How can you find the exact size of a data type in c?
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?
What is the difference between text files and binary files?
Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant
I have seen function declarations that look like this