你也能拿高薪: 名企面试自助手册

首页
字体:
上 页 目 录 下 章
4. 硬件巨头—Intel笔试面试题目(1)(2/2)

    挑bug,在linux下运行:

    #include <stdio.h>

    char

    reverse(char str)

    {

    int len=0, i=0;

    char pstr=str, ptemp,pd;

    [40]=

    “hello ;

    printf(“%s”, pstr);

    printf(“%s”,

    reverse(pstr));

    }

    实验室笔试题1.写出下列信号的奈亏斯特频率

    (1)f(t)=1+cos(2000pait)+sin(4000pait)

    (2)f(t)=sin(4000pait)/pait

    (3)f(t)=(sin(4000pait)的平方)/pait

    2.有两个线程

    void

    producer()

    {

    nal(customer);

    }

    }

    void customer()

    {

    nal();

    if(packetinbuffer>10)

    {

    readallpackets();

    processpackets();

    }

    }

    }

    (1)有没有其他方法可以提高程序的性能

    (2)可不可以不使用信号之类的机制来实现上述的功能

    3.优化下面的程序

    (0)sum=0

    (1)i=1

    (2)t1=4i

    (3)t2=address(a)-4

    (4)t3=t2[t1]

    (5)t4=address(b)-4

    (6)t5=4i

    (7)t6=t4[t5]

    (8)t7=t3t5

    (9)sum=sum+t6

    (10)i=i+1

    (11)if

    i<20 goto (2)



    狠男人小说最快更新,无弹窗阅读请。

本章未完,请翻开下方下一章继续阅读