ChinaUnix.net
相关文章推荐:

c 语言 面试题库

int main(void) { int a[5] = {1, 2, 3, 4, 5}; int *p = (int *)(&a + 1); printf("%d %d\n", *(a + 1), *(p - 1)); return 0; } 问输出结果。。。。。。

by victorgenius - C/C++ - 2007-08-31 01:05:00 阅读(6658) 回复(28)

相关讨论

#include typedef struct { int a : 1; int b : 1; int c : 1; } m; int main(int argc,char *argv[]) { m k; k.a = 1; k.b = 0; k.c = 0; printf("%d, %d, %d, %d\n", sizeof(k), k.a, k.b, k.c); return 0; } 1.给出输出结果,并解释 [ 本帖最后由 openX 于 2006-2-14 17:39 编辑 ]

by openX - C/C++ - 2006-02-21 13:48:39 阅读(9115) 回复(37)

char a[] = "abc"; char b[] = {'a', 'b', 'c'}; 数组a和数组b的长度那个大? [code] #include #include int main(int argc, char *argv[]) { char a[] = "abc"; char b[] = {'a', 'b', 'c'}; printf("sa=%d,sb=%d\n", strlen(a),strlen(b)); printf("ssa=%d,ssb=%d\n", sizeof(a),sizeof(b)); return 0; } sa=3,sb=7 ssa=4,ssb=3 [/code] 对运行结果还是不太明白

by openX - C/C++ - 2006-02-13 15:53:28 阅读(1450) 回复(8)

一、预处理器(Preprocessor) 1. 用预处理指令#define 声明一个常数,用以表明1年中有多少秒(忽略闰年问题) #define SECONDS_PER_YEAR (60 * 60 * 24 * 365)UL 考点: 1). #define 语法的基本知识(例如:不能以分号结束,括号的使用,等等) 2). 懂得预处理器将为你计算常数表达式的值,因此,直接写出你是如何计算一年中有多少秒而不是计算出实际的值,是更清晰而没有代价的。 3). 意识到这个表达式将使一个16位机的整型数...

by ncb0601 - C/C++ - 2006-12-07 22:55:45 阅读(4368) 回复(35)

哪个兄弟参加过神州数码思特奇的面试啊,贴上来啊, [ 本帖最后由 墩子 于 2007-10-11 17:16 编辑 ]

by 墩子 - IT职业生涯 - 2007-10-12 16:33:52 阅读(4844) 回复(6)

1) 使用C语言写出以下函数,给你三个变量a,b,c,请不使用其他变量的情况下交换他们的值,使得a=b, b=c, c=a; 2) 使用C语言写出以下函数,给你一个用字符串表示的整数,请写一个函数把该字符串转化成为整数,并要求处理异常情况。函数体中的语句不能超过5句 就上面两个,想了一下不会做,高手来解答下呢!

by _google - C/C++ - 2007-10-12 14:39:53 阅读(17377) 回复(78)

Design and write, using C (without C++ or language extentions), an implementation for the following function prototype: bool matchAndTranslate(const char* inputString, const char* translationEntry, char* outputString); where inputString is a null-terminated string with a maximum length of 64 characters in the character set of {A-Za-z0-9_} translationEntry is a null-terminated string with a ma...

by lc1999 - C/C++ - 2005-09-01 22:46:39 阅读(5625) 回复(29)
by yueliangdao0608 - PHP - 2007-03-28 16:56:56 阅读(1162) 回复(5)

大哥大姐们,谁有Linux认证的考试题库啊,发给小弟一个,RHCT、RHCE、LPI 都可以,近期要考试,又没有那么长的时间复习,希望兄弟姐妹们帮帮忙。 如果可以的话请发到我的邮箱guoqiang00544(at)sohu.com 小弟将万分感谢!

by linuxpilot - 培训交流 - 2009-04-21 10:23:40 阅读(852) 回复(0)

第一部分 unix 系统基础 On a system with a standard HP-UX installation if the user is greeted with the ">" prompt they need to: A. immediately log-off. B. reboot the system. C. complete their current command line. D. reset their password. @ c @ C. The ">" is the default secondary prompt and is issued when the shell receives a carriage return prior to the completion of the command line (usually the...

by 惠普9000服务 - HP文档中心 - 2006-03-30 14:09:16 阅读(2194) 回复(0)

12 月最新 OpenView 考试题库 HP0-717 - HP OpenView Network Node Manager I (6.x) - UNIX/NT HP0-743 - HP OpenView Network Node Manager II (6.x) - UNIX/NT 最新题库下载,欢迎联系我们。 http://elitedb.yeah.net

by jkljkljl - HP-UX - 2003-12-19 16:07:53 阅读(421) 回复(0)