@laserlight Thanks for response. I think a lot of the issues I face is because the tutorial app i'm using on my iPhone is out of date. I've had problems with put, get, strlen and others. I want to use linux and maybe a lot of this programs are made for visual basic c#.
I use a tutorial app called Sololearn.
I've looked through the help on this site and the books are so expensive. Can anyone can point me in the right direction for a cheap book or website or even another app that's better.
P.S. With a extensive search I worked it out.
Code:
#include <stdio.h>
#include <string.h>
int main() {
char s1[ ] = "The grey fox";
char s2[ ] = " jumped.";
int len;
strcat(s1, s2);
printf("%s\n", s1);
len = strlen(s1);
printf("Length of s1 is %d\n", len);
strcpy(s1, s2);
printf("s1 is now %s\n", s1);
return 0;
}