write a c program for print your name .but,your name may be small
letter mean print a capital letter or your name may be capital
letter mean print a small letter .example
\\enter ur name :
sankar
The name is: SANKAR
(or)
enter your name:SAnkar
The name is:saNKAR
Answer Posted / ganesh
char s[15];int n,i;
scanf("%s",s,printf("give a name:"));
for(i=0;i<strlen(s);i++)
{
if(s[i]==tolower(s[i]))
putchar(toupper(s[i]));
else
putchar(tolower(s[i]));
}
| Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function
What is the advantage of using #define to declare a constant?
List the difference between a 'copy constructor' and a 'assignment operator' in C?
What is void main () in c?
Hi can anyone tell what is a start up code?
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
What is modifier & how many types of modifiers available in c?
What is static identifier?
Explain how do you print an address?
What is string function in c?
What is the argument of a function in c?
Tell me with an example the self-referential structure?
What is a program flowchart?
What are the advantages of c language?
What are the types of data types and explain?