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

Mr. Williams physical education class last for 7/8 hour. How many minutes are spent warming up and cooling down if these two together total 3/10?
What is uses numbers, variables,& operation symbol
8912 butterflies on one branch they estimate 1000 times as large. How many butterflies were at the site in all?
What is the capital of Pennsylvania?
Write a real-world problem that involves dividing a decimal by a whole number. Solve.
rename 40,000 using other place values
A bus slows down uniformly from 75.0 km/h to 0 km/h in 21 s. How far does it travel before stopping?
What does the 15th amendment say?
Why would you be cautious of scientific information you hear from advertisers?
A particular plant root grows 1.5 inches per month. How many centimeters is the plant root growing per month? (1 inch = 2.54 centimeters).