How to convert part of a string to lowercase start from specific index in C

1 Answer

0 votes
#include <stdio.h>
#include <string.h>
 
int main() 
{                       
    char s[] = "C PROGRAMMING"; 
    
    strlwr(&s[5]);
     
    puts(s);
    
    return 0; 
} 
  
  
  
/*
run:
  
C PROgramming
  
*/

 



answered Nov 12, 2019 by avibootz
...