write a fuction for accepting and replacing lowercase
letter to'Z' with out using inline function.
Answer Posted / 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 |
Post New Answer View All Answers
Explain what are run-time errors?
What is the benefit of using const for declaring constants?
What are the 4 data types?
What would be an example of a structure analogous to structure c?
What are the 4 types of organizational structures?
Explain the difference between call by value and call by reference in c language?
What is structure padding and packing in c?
How would you use the functions fseek(), freed(), fwrite() and ftell()?
Which is better between malloc and calloc?
What is the size of array float a(10)?
What are extern variables in c?
Why doesnt this code work?
Differentiate between calloc and malloc.
What is the purpose of main( ) in c language?
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?