Ghhkgu6712 Ghhkgu6712
  • 16-08-2022
  • Computers and Technology
contestada

Write a function, capitalise, which takes a null-terminated string (char*), and replaces each lower-case letter with its upper-case counterpart.

Respuesta :

tutorconsortium31 tutorconsortium31
  • 20-08-2022

// convert a string to uppercase letters void convert(char strng[])

{

int i = 0;

while (strng[1] ! = '\0')

{

strng[i] = ToUpper(strag[i]);

1++;

}

return;

}

char ToUpper (char letter) // convert a character to uppercase

{

if( (letter >='a') & (letter <= '2') )

return (letter - 'a' + 'A');

else

return (letter);

}

Learn more about String here:

https://brainly.com/question/15683939

#SPJ4

Answer Link

Otras preguntas

What is an easy way to remember who puritans were
what is 225 multiplied by 6
sasha donated 9/100 of her class' s entire can collection for the food drive. Which decimal is equivalent to 9/100?
Math what is 14 ten thousand+12 thousand
Contrast the reproduction of bacteria with that of leopard frogs.
Why do you need to line up the decimal points before comparing and ordering numbers with decimals?
the lovin lemonade company sells a 4 gallon jug of lemonade for $24 the sweet and sour company sells an eight pack of 1 quart bottles of lemonade for $16 which
What are examples of local diversity??
There are 5 males to every 3 females at the gym. If 120 males attend on an average day how many females attend
The colonies that became the original United States were part of which European nation's land claims?