搜狐2013校招研发工程师笔试题
时长:60分钟 总分:100分
132浏览 0人已完成答题
题型介绍
题型 | 单选题 | 多选题 |
---|---|---|
数量 | 14 | 6 |
假设二叉排序树的定义是:1、若它的左子树不为空,则左子树所有节点均小于它的根节点的值;2、若右子树不为空,则右子树所有节点的值均大于根节点的值;3、它的左右子树也分别为二叉排序树。下列哪种遍历之后得到一个递增有序数列?
int A[2][3]={1,2,3,4,5,6},则A[1][0]和*(*(A+1)+1)的值分别是?
以下程序打印的两个字符分别是?
#include<stdio.h> #include<iostream> using namespace std typedef struct object object struct object { char data[3] } int main(void) { object obj_array[3] = {{'a', 'b', 'c'}, {'d', 'e', 'f'}, {'g', 'h', 'i'}} object *cur = obj_array printf("%c %c\n", *(char *)((char *)(cur) + 2), *(char *)(cur + 2)) return 0 }
8瓶酒一瓶有毒,用人测试。每次测试结果8小时后才会得出,而你只有8个小时的时间。问最少需要多少人测试?
请问在 64 位平台机器下 sizeof(string_a),sizeof(string_b) 大小分别是?
char *string_a = (char *)malloc(100*sizeof(char))
char string_b[100]
以下程序的打印结果是?
#include<iostream> using namespace std void swap_int(int a , int b) { int temp = a a = b b = temp } void swap_str(char*a , char*b) { char*temp = a a = b b = temp } int main(void) { int a = 10 int b = 5 char*str_a = "hello world" char*str_b = "world hello" swap_int(a , b). swap_str(str_a , str_b) printf("%d %d %s %s\n",a,b,str_a,str_b) return 0 }