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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is data structure in c language?

608


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

1717


Why array is used in c?

553


What are all different types of pointers in c?

579


Explain the properties of union. What is the size of a union variable

718






Is there a way to jump out of a function or functions?

636


What is the difference between strcpy() and memcpy() function in c programming?

628


Can we declare a function inside a function in c?

590


What is wrong with this program statement?

610


Explain how can I read and write comma-delimited text?

660


which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +

1186


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

1740


What functions are in conio h?

662


What are the features of c languages?

631


write an interactive C program that will encode or decode a line of text.To encode a line of text,proceed as follows. 1.convert each character,including blank spaces,to its ASCII equivalent. 2.Generate a positive random integer.add this integer to the ASCII equivalent of each character.The same random integer will be used for the entire line of text. 3.Suppose that N1 represents the lowest permissible value in the ASCII code,and N2 represents the highest permissible value.If the number obtained in step 2 above(i.e.,the original ASCII equivalent plus the random integer)exceeds N2,then subtract the largest possible multiple of N2 from this number,and add the remainder to N1.Hence the encoded number will always fall between N1 and N2,and will therefore always represent some ASCII character. 4.Dislay the characters that correspond to the encoded ASCII values.  The procedure is reversed when decoding a line of text.Be certain,however,that the same random number is used in decodingas was used in encoding.

2721