Preview:
#include <stdio.h>

int main(){
    char s[]="Harrys";
    int len=0;
    while(s[len]!='\0'){
        len++;
    }
    printf("%d\n",len);
    
    for(int i=0; i<=((len-1)/2);i++){
        int temp=s[i];
        s[i]=s[len-1-i];
        s[len-1-i]=temp;
    }
    printf("%s",s);
    return 0;
}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter