Answers for "toupper"

4

touppercase

const names = ['Ali', 'Atta', 'Alex', 'John'];

const uppercased = names.map(name => name.toUpperCase());

console.log(uppercased);

// ['ALI', 'ATTA', 'ALEX', 'JOHN']
Posted by: Guest on October-23-2020
0

toUpperCase()

let dna = " TCG-TAC-gaC-TAC-CGT-CAG-ACT-TAa-CcA-GTC-cAt-AGA-GCT    ";
dna = dna.trim().toUpperCase();
console.log(dna);
Posted by: Guest on June-14-2021
1

toupper c++

int result = toupper(charecterVariable);// return the int that corresponding upper case char
//if there is none then it will return the int for the original input.
//can convert int to char after
char result2 = (char)toupper(variableChar);
Posted by: Guest on October-11-2020
1

to upper in c

#include <ctype.h> // For function below
Posted by: Guest on December-06-2020
0

toupper c programming

int toupper( int arg );
Posted by: Guest on October-27-2020
0

toupper

#include <stdio.h>
#include <ctype.h>
int main() {
    char c;

    c = 'm';
    printf("%c -> %c", c, toupper(c));

    c = 'D';
    printf("\n%c -> %c", c, toupper(c));

    c = '9';
    printf("\n%c -> %c", c, toupper(c));
    return 0;
}
Posted by: Guest on May-01-2021

Browse Popular Code Answers by Language