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
Explain why C language is procedural?
What does dm mean sexually?
What are the features of c language?
Disadvantages of C language.
What is a function simple definition?
What is the use of #define preprocessor in c?
Is c procedural or functional?
How are portions of a program disabled in demo versions?
How can I run c program?
Difference between macros and inline functions? Can a function be forced as inline?
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
please send me the code for multiplying sparse matrix using c
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
What is function pointer c?