奇安信2019春招网络开发试题
时长:120分钟 总分:100分
197浏览 0人已完成答题
题型介绍
题型 | 单选题 | 多选题 |
---|---|---|
数量 | 21 | 9 |
对于以下递归函数f,调用f(6)的返回值是()。 int f(int n)...
int f(int n) { if (n) return f(n - 1) + n else return n }
已知 int a[4][3] = {1,2,3,4,5,6,7,8,9,1...
请问下面结构体所占的空间大小是(&nbsp &nbsp)字节。 typ...
typedef struct { int id, char name, short a, short b, } student_t
如下程序在x86_64位系统下运行,d的输出结果是() #include&...
如下程序在x86_64位系统下运行,d的输出结果是()
#include<stdio.h> struct bitfields { unsigned short a:4 unsigned short b:5 unsigned short c:7 } test int main(int argc, char *argv[]) { int d = 0 test.a = 2 test.b = 3 test.c = 0 d = *((unsigned short *)&test) printf("%d\r\n", d) return 0 }
char *ss = "0123456789"&nbsp int a ...
char *ss = "0123456789" int a = sizeof(ss) int b = sizeof(*ss) int c = strlen(ss)在x86_64位系统下,变量a,b,c的值分别是多少()
如下程序在x86_64位系统下运行,输出结果是() #include &l...
如下程序在x86_64位系统下运行,输出结果是()
#include <stdio.h> union { int i char x[2] } a int main(int argc, char *argv[]) { a.x[0] = 10 a.x[1] =2 printf("%d",a.i) return 0 }
以下程序的运行结果不是:() #include &ltstdio.h&g...
以下程序的运行结果不是:()
#include <stdio.h> int main(int argc, char *argv[]) { int n = 'e' switch(n--) { default:printf("error ") case 'a': case 'b': printf("good ") break case 'm': printf("pass ") case 'n': printf("warn ") } return 0 }