How to use strrev() function in C

1 Answer

0 votes
#include <stdio.h>
#include <string.h>

int main() {
    char s[] = "c programming";

    strrev(s);
    
    printf("%s\n", s);

    return 0;
}

 
 
/*
run :
 
gnimmargorp c
 
*/

 



answered Mar 2, 2021 by avibootz
...