Contact: aviboots(AT)netvision.net.il
39,884 questions
51,810 answers
573 users
#include <stdio.h> #include <string.h> int main () { char src[32] = "c c++ java"; char dest[16]; strncpy(dest, src, 7); printf("%s", dest); return 0; } /* run: c c++ j */