include<stdio.h>char* strcmp(const char *str1,const char *str2);int main(){int i;char a[4][100];char *str;printf("please inter four strings:\n");for(i=0;i<4;i++){//scanf("%s",&a[i][100]);scanf("%s",a[i]);} str=strcmp(a[0],a[1]);str=strcmp(st...
a =3, b =5---after swap1---a=3, b =5---after swap2---a=5, b =3 9,数组和字符型指针的区别 #include <stdio.h>intmain(void) {//数组初始化, 字符存放在 str 数组中.charstr[128] ="china unix";//将字符串的首地址给予指针变量 s//字符串本身存放于 .rodata 段.char*s ="chin...