Contact: aviboots(AT)netvision.net.il
39,885 questions
51,811 answers
573 users
#include <stdio.h> #include <string.h> int main(void) { char s[] = "java c c++ c# php python"; char last[5]; int N = 4; strncpy(last, s + strlen(s) - N, N); last[N] = '\0'; puts(last); return 0; } /* run: thon */