46 家著名企业笔试题目转自应届生求职网46 家闻名企业笔试题目(转自应届生求职网)46 家闻名企业笔试题目 Sony 笔试题 1.完毕下列程序**.*. *..*..*.. *...*...*...*... *....*....*....*....*....*.....*.....*.....*.....*.....*.....*......*......*......*......*......*......*......*.......*.......*.......*.......*.......*.......*.......*.......#include #define N 8 intmain() {int i;int j;int k;---------------------------------------------------------| | | | | |---------------------------------------------------------return 0;}2 . 完 毕 程 序 , 实 现 对 数 组 的 降 序 排 序 #include void sort();int main() {int array[]={45,56,76,234,1,34,23,2,3}; //数字任//意给出sort( ); return 0;}void sort( ){____________________________________| | | | |-----------------------------------------------------|}3.波那其数列,1,1,2,3,5……编写程序求第十项。可以用递归,也可以用其他措施,但要阐明你选择的理由。#include int pheponatch(int);int main(){printf(\"The 10th is %d\",pheponatch(10));return 0;}int pheponatch(int N){--------------------------------| || |--------------------------------}4.下列程序运行时会瓦解,请 找 出 错 误 并 改 正 , 并 且 阐 明 缘 由 。 #include #include typedef struct{TNode* left;TNode* right;int value;} TNode;TNode* root=NULL;void append(int N);int main(){append(63);append(45);append(32);append(77);append(96);append(21);append(17); // Again, 数字随意给出}void append(int N){TNode* NewNode=(TNode *)malloc(sizeof(TNode));NewNode->value=N;if(root==NULL){root=NewNode;return;}else{TNode* temp;temp=root;while((N>=temp.value&& temp.left!=NULL) ||(N=temp.value&& temp.left!=NULL)temp=temp.left;while(N=temp.value)temp.left=NewNode;elsetemp.right=NewNode;return;}}华为笔试题 1.请你分别画出OSI 的七层网络构造图...