Contact: aviboots(AT)netvision.net.il
41,445 questions
53,992 answers
573 users
#include <stdio.h> #include <string.h> int main(void) { char s1[16] = "c", s2[16] = "c++", tmp[16] = ""; strcpy(tmp, s1); strcpy(s1, s2); strcpy(s2, tmp); printf("s1 : %s\n", s1); printf("s2 : %s\n", s2); } /* run: s1 : c++ s2 : c */