摘要:
int arr[100]; printf("&arr[0]=%d\n",&arr[0]); printf("arr=%d\n",arr); printf("&arr=%d\n",&arr); printf("&arr[0]+1=%d\n",&arr[0]+1); printf("arr+1=%d\n",arr+1); printf("&arr+1=%d\n",&arr+1);运行的结果&arr[0]=12 阅读全文
摘要:
sscanf char buf[]="port=5000"; char key[100]=""; char value[100]=""; sscanf(buf,"%[^=]=%[^\n]",key,value); printf("key=%s\n",key); printf("value=%s\n",value); strtok char buf[]="port=5000"; char key[100]=""; char value[1 阅读全文