c试题-请输入下面c代码的执行结果
#include <stdio.h> int main() { char str[] = "Hello, World!"; char *p1 = str; char *p2 = str + 5; printf("%d\n", p2 - p1); printf("%s\n", p2); return 0; }
#include <stdio.h> int main() { char str[] = "Hello, World!"; char *p1 = str; char *p2 = str + 5; printf("%d\n", p2 - p1); printf("%s\n", p2); return 0; }
网友评论0