计算机 填空题 较难 ★ 精品

字符串处理函数的应用 — 计算机填空题

C 语言程序设计(大学通用) 数组 AI 三重审校通过

题目
阅读以下 C 程序,执行后输出____。 #include <stdio.h> #include <string.h> int main(void) { char s[20] = "ab12cd"; char t[20] = "34ef56"; strncpy(s + 2, t + 2, 2); strcat(s, t); printf("%d", (int)(strstr(s, "ef56") - s)); return 0; }