单项选择题

以下程序的功能是进行位运算 main ( ) { unsigned char a, b; a=7^3; b=~4&3; printf (,%d %d\n" ,a,b); } 程序运行后的输出结果是

A.4 3
B.7 3
C.7 0
D.4 0
<上一题 目录 下一题>
热门 试题

单项选择题
以下不能正确进行字符串赋初值的语句是
A.char str[5]="good!";
B.char str[]="good!";
C.char*srt="good!";
D.char str[5]={ 'g', 'o', 'o', 'd'};
单项选择题
有以下程序 #include <stdlib.h> main() { char *p,*q; p=(char*)malloc(sizeof(char)*20); q=p; scanf( %s %s ,p,q); printf( %s %s n ,p,q); } 若从键盘输入:abc def<回车>, 则输出结果是
A.def def
B.abc del
C.abc d
D.d d
相关试题
  • 以下程序运行后的输出结果是______。...
  • 设有如下定义#define MYSWAP(z,x,y)...
  • 以下程序中函数huiwen 的功能是检查一个字...
  • 以下程序运行后的输出结果是______。...
  • fun函数的功能是:首先对a所指的N行N列的矩...