answersLogoWhite

0

/* Write a function that will scan a character string passed as an argument & convert all lowercase characters into their uppercase characters*/

#include<stdio.h>

#include<conio.h>

#include<string.h>

#include<ctype.h>

int str_upp(char c[])

{

int i;

char x;

printf("\n \n");

for(i=0;i<strlen(c);i++)

{

x=toupper(c[i]);

printf("%c",x);

}

return (0);

}

void main()

{

char c[10];

clrscr();

printf("Enter string : \n");

scanf("%s",c);

str_upp(c) ;

getch();

}

/*

Output:

Enter string :

Heloo

HELOO

*/

User Avatar

Wiki User

13y ago

What else can I help you with?

Continue Learning about Engineering

Write a program to initialize a character and print whether it is uppercase lowercase or special character in java module 1?

I'll just write a function to do that, I hope the good people won't try to run it as it is.... void function() { char c = 'a'; if( c &gt;= 'a' &amp;&amp; c &lt;='z' ) System.out.println("LowerCase"); else if( c&gt;='A' &amp;&amp; c &lt;='Z' ) System.out.println("UpperCase"); else System.out.println("Special Character"); }


Does Easytrieve have a version of the COBOL uppercase function?

no


Changing a word to all uppercase letters in c plus plus?

To change any string to uppercase, loop through each character in the string. If the character is in the range 'a' through 'z', decrement the character by decimal 32 (the difference between ASCII value 'a' and 'A'). The following function shows an example of this: void to_upper(std::string&amp; str) { for(int i=0; i&lt;str.size(); ++i) if(str[i]&gt;='a' &amp;&amp; str[i]&lt;='z') str[i]-=32; }


Write a program in foxpro to chek inputed character is vowel or not?

You can use the following FoxPro code snippet to check if an input character is a vowel: CLEAR INPUTCHAR = UPPER(INPUT(&quot;Enter a character: &quot;)) IF INLIST(INPUTCHAR, &quot;A&quot;, &quot;E&quot;, &quot;I&quot;, &quot;O&quot;, &quot;U&quot;) ? &quot;The character is a vowel.&quot; ELSE ? &quot;The character is not a vowel.&quot; ENDIF This program prompts the user for a character, converts it to uppercase, and checks if it is one of the vowels using the INLIST function.


When a function is used as an argument in another function?

It is called callback function. For an example see the qsort function.

Related Questions

What is initcap?

the initcap function sets the first character in each word to uppercase and the rest to lowercase.The syntax for the initcap function is:initcap( string1 )string1 is the string argument whose first character in each word will be converted to uppercase and all remaining characters converted to lowercase.


Write a program to initialize a character and print whether it is uppercase lowercase or special character in java module 1?

I'll just write a function to do that, I hope the good people won't try to run it as it is.... void function() { char c = 'a'; if( c &gt;= 'a' &amp;&amp; c &lt;='z' ) System.out.println("LowerCase"); else if( c&gt;='A' &amp;&amp; c &lt;='Z' ) System.out.println("UpperCase"); else System.out.println("Special Character"); }


What does the PROPER function do in Excel?

The proper function in Excel causes the first letter in a text string and any other letters in text that follow any character other than a letter to be changed into uppercase. It converts all other letters to lowercase letters.


What is the length command line argument in character?

Use the function strlen(string);


Does Easytrieve have a version of the COBOL uppercase function?

no


What are the function of typewriter keys?

Typewriter keys serve the primary function of producing characters and symbols on paper through a mechanical mechanism. Each key is connected to a specific typeface character, and when pressed, it strikes an inked ribbon against the paper to create an impression of that character. Additionally, typewriter keys often include functions for spacing, shifting cases (uppercase/lowercase), and special characters, facilitating various typing tasks. Overall, they enable users to compose written text efficiently and accurately.


Changing a word to all uppercase letters in c plus plus?

To change any string to uppercase, loop through each character in the string. If the character is in the range 'a' through 'z', decrement the character by decimal 32 (the difference between ASCII value 'a' and 'A'). The following function shows an example of this: void to_upper(std::string&amp; str) { for(int i=0; i&lt;str.size(); ++i) if(str[i]&gt;='a' &amp;&amp; str[i]&lt;='z') str[i]-=32; }


What are classification of letters?

Letters can be classified based on their position and function in a word: vowels (a, e, i, o, u) and consonants (all other letters). Additionally, letters can be classified based on their shape: uppercase (capital) letters and lowercase letters.


Write a program in foxpro to chek inputed character is vowel or not?

You can use the following FoxPro code snippet to check if an input character is a vowel: CLEAR INPUTCHAR = UPPER(INPUT(&quot;Enter a character: &quot;)) IF INLIST(INPUTCHAR, &quot;A&quot;, &quot;E&quot;, &quot;I&quot;, &quot;O&quot;, &quot;U&quot;) ? &quot;The character is a vowel.&quot; ELSE ? &quot;The character is not a vowel.&quot; ENDIF This program prompts the user for a character, converts it to uppercase, and checks if it is one of the vowels using the INLIST function.


Which is not the argument that must be specified in the IF Function in excel?

In the IF function in Excel, the third argument, which specifies the value to return if the condition is false, is not mandatory. If this argument is omitted, Excel will return FALSE by default when the condition is not met. The first argument (the logical test) and the second argument (the value if true) must be provided for the function to work correctly.


When a function is used as an argument in another function?

It is called callback function. For an example see the qsort function.


What are limits in maths?

Limits (or limiting values) are values that a function may approach (but not actually reach) as the argument of the function approaches some given value. The function is usually not defined for that particular value of the argument.