有以下程序: #include<stdio.h>#include<stdlio.h>void fun(int*pl,int*p2,int*s){ s=(int*)malloc(sizeof(int)); *s=*pl+*p2; free(s); }main( ) { int a=1,b=40,*q=&a; fun(&a,&b,q); printf("%d",*q); } 程序运行后的输出结果是( )。 42 。 0 。 1 。 41。
设变量P是指针变量,语句P=NULL;是给指针变量赋NULL值,它等价于( )。 p=""; 。 p="0";。 p=0;。 p="; 。
有以下程序: #include<stdio.h>main( ){ int a=-2,b=0; while(a++&&++b); printf("%d,%d",a,b); }程序运行后的输出结果是( )。 1,3 。 0,2。 0,3 。 1,2。
有以下程序: #include<stdio.h>main( ){ char a[20],b[20],c[20]; scanf("%s%s",a,b); gets(c); printf("%S%S%s",a,b,c); }程序运行时从第一列开始输入: This is a cat!<回车>则输出结果是( )。 Thisisacat! 。 Thisis a 。 Thisis a cat!。 Thisisa cat !。
有以下程序: #include<stdio.h>#include<string.h>main( ){printf{"%d",strlen("%d",strlen("ATS0121"));} 程序运行后的输出结果是( )。 3 。 8。 4 。 9。
以下叙述中正确的是( )。