往年威盛电子笔试题(精选2篇)
篇1:往年威盛电子笔试题
往年威盛电子笔试题
1.在第一个声明处编译出了奇怪的.错误,为什么?
#include
#include “myfun1.h”
#include “myfun2.h”
int myInt1;
int myInt2;
2.三组程序,找出你认为的错误,
(1)a.c long temp[255];
b.c extern *temp;
(2)a.c long temp[255];
b.c extern temp[256];
(3)a.c long temp[255];
b.c extern temp[];
3.printf(“0x%x”, (&0)[1]); 请问打印了什么?
4.汇编,用ax,bx,cx,dx,求1000×1000/30(四舍五入),结果放在ax中,
5.编最优化Bubble(int *pIntArray,int L),要求:交换元素不能用临时变量,如果有序需要最优。
6.用任意一种编程语言写n!的算法。
篇2:往年威盛电子笔试题
1.#include #define ADD(p) {p++;(*p)++;}Add(int *p) {p++;(*p)++;}int a[]={0,1,2};int main{int *p=a;ADD(p)ADD(p)printf(“%d,%d,%d/n”,a[0],a[1],a[2]);p=a;Add(p);Add(p);printf(“%d,%d,%d/n”,a[0],a[1],a[2]);}输出多少?
2.:说明下面程序的作用,
func(char*a,char*b){while(*a++=*b++);return;}
3.:说明下面的的表达有没有不同,如果不同,请说明不同在哪里,
char* s1=“hello”;
char s2[]=“world”;
4.简述auto,static,register,extern四种存储类型的区别
5.:int count=0;int x=int main(){while(x){count++;x=x&(x-1);}return count;}问输出返回的count值。
6.:8个台阶,上台阶的人一次最多上3个台阶,问上这个8个台阶有多少种方法?
【往年威盛电子笔试题】相关文章:
威盛公司软件C++工程师笔试题04-15
威盛笔试试题软件04-18
工艺美术往年试题07-02
往年成人高考地理试题04-28
电大机械专业《本科》的往年试题06-01
考研英语复习往年试题做三遍05-09
考研高分考生经验:英语备考多练往年试题05-21
往年考题七下05-25
往年六级作文05-11