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

Which sentence most needs to be revised because its description is too vague? We hiked two miles uphill in the blooming forest today. We sprinted back and fort
If a propane heater burns 38.95 g C3H8, it consumes?
The great lakes in north american hold about what percent of earth's fresh surface water?
A bakery bakes 184 loaves of bread in 4 hours. How many loaves does the bakery bake in 1 hour?
Can someone please answer. There is a picture. There is only one problem. Thank you so much!!!
when solving one step equations ... -16=8f
As newts' poison became more toxic, the garter snake's resistance to it became more efficient. This is an example of _____.
Mis amigos _a colombia de vacaciones
A student who runs every day is becoming bored with her physical fitness routine and considers quitting. What is the most effective thing she can do to maintain
Based on the mole ratios, what can most likely be predicted?