AI智能整理导入 AI智能整理导入
×
首页 题库中心 c语言程序设计题库 题目详情
CA85E835B92000012B50FB49F93816B5
c语言程序设计题库
1,073
判断题

if(a=5) 是允许的。

答案解析

正确答案:A

解析:

选择结构程序设计
c语言程序设计题库

扫码进入小程序
随时随地练习

相关题目

单选题

下面程序的运行结果是( )。
# include
main ( )
{ int a = 28 , b ;
char s [10],*p ;
p =s ;
do { b = a % 16 ;
if ( b < 10 ) *p=b + 48 ;
else *p = b + 55 ;
p++;
a = a / 5 ;
} while ( a > 0 ) ;
*p =‘\ 0 ' ;
puts ( s ) ;
}

单选题

下面程序的运行结果是( )。

# include
void delch ( char *s )
{Int i , j ;
char *a ;
a =s;
for ( i = 0 , j = 0 ; a [ i ] ! = ' \ 0 ';i++ ;)
if ( a [i ]>= '0'&&a[i]<='9') { s[j]=a[i];j++ ; }
s[j]='\0';
}
main ( )
{char * item = "a34bc" ;
delch ( item ) ;
printf ( "\n%s" , item) ; }

单选题

下面程序的运行结果是( )。

# include
# include
main ( )
{char *s1 =“AbDeG " ;
char *s2 = " AbdEg " ;
s1+=2 ; s2 +=2 ;
printf ( “%d\n” , strcmp ( s1 , s2 ) ) ;
}

单选题

下面程序的运行结果是( )。

#include
#include
fun(char *s)
{char a[7];
s=a;
strcpy(a,"look") ;
}
main ( )
{char *p;
fun(p);
puts(p);
}

单选题

下面程序的运行结果是( )。

#include
#include
fun(char *w,int n)
(char t,*s1,*s2;
s1=w;s2=w+n-1;
while(s1}
main ()
{char *p;
p="1234567”;
fun(p,strlen(p));
puts(p);
}

单选题

下面程序的运行结果是( )。
#include
main()
{char *p,s[]="ABCDEFG";
for(p=s;*p!='\0';)
{printf("%s\n",p);
p++;
if(*p!='\0') p++;
else break ;
}
}

单选题

下面程序的运行结果是( )。
#include
#include
main ( )
{char *p1,*p2,str[50]="abc";
p1="abc"; p2="abc";
strcpy(str+1,strcat(p1,p2));
printf("%s\n",str);}

单选题

下面程序的运行结果是( )。

#include
main ( )
{char str[ ]="cdalb";
abc(str);
puts(str);
}
abc(char *p)
{int i,j;
for(i=j=0;*(p+i)!='\\0';i++)
if(*(p+i)>='d') {*(p+j)=*(p+i);j++;}
*(p+j)='\\0';
}

单选题

下面程序的运行结果是( )。
#include
fun(char *p)
{int i,t; char ts[81];
for(i=0,t=0;p[i]='\\0';i+=2 )
if( ! isspace(*p+i)&&(*(p+i)!='a'))
ts[t++]=toupper(p[i];
ts[t]='\\0';
strcpy(p,ts);
}
main ( )
{char str[81]={"a_b_c_d_ef_g"); //( _表示空格)
fun(str);
puts(str);
}

单选题

若有以下定义, 则对a 数组元素地址的正确引用是( )。
int a[5],*p=a;

关闭
专为自学备考人员打造
试题通
自助导入本地题库
试题通
多种刷题考试模式
试题通
本地离线答题搜题
试题通
扫码考试方便快捷
试题通
海量试题每日更新
试题通
欢迎登录试题通
可以使用以下方式扫码登陆
试题通
使用APP登录
试题通
使用微信登录
xiaochengxu
联系电话:
400-660-3606
xiaochengxu