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

1 Answer

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

int main() 
{                       
    char s[] = "c programming"; 
   
    strupr(&s[5]);
	
	puts(s);
   
    return 0; 
} 
 
 
 
/*
run:
 
c proGRAMMING
 
*/

 



answered Nov 12, 2019 by avibootz
...