新浪网研发中心招聘笔试题 姓名:申请职位:一、开发能力部分:通用题1
尽量多的写出多种语言的 hello world
程序(C、Shell、Perl、Python、Java 等等)C 语言部分1
判断 ABCD 四个体现式与否对的, 若对的, 写出通过体现式中 a 的值 int a = 4; (A)a += (a++); (B) a += (++a) ;(C) (a++) += a;(D) (++a) += (a++); a =
请问运行下面的 test 函数会有什么样的成果 char *allocate (void) { char p[] = "hello world"; return p; } void test (void) { char *str = NULL; str = allocate(); printf("%s\n", str); }3
比较 char *p 和 char p[10] 的区别4
完毕如下所示的宏定义,其作用是将接受到的两个参数的值互换 #define EXCHANGE(x, y) \ // start here5
在不运用其他函数的状况下,完毕如下所示的函数,其功能是将 src 所指向的 n 个字节的内容,复制到 dest 所指向的位置 void memcopy(void *dest, void *src, size_t n) { // start here }6
完毕下面的程序,其功能是运用两个线程同步执行 print_a 和 print_b 两个函数 void print_a () { printf("A\n"); } void print_b () { printf("B\n"); } int main (int argc, const char **argv) { // start here return 0;