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
char a[] = "abc";
char b[] = {'a', 'b', 'c'};
数组a和数组b的长度那个大?
[code]
#include
一、预处理器(Preprocessor) 1. 用预处理指令#define 声明一个常数,用以表明1年中有多少秒(忽略闰年问题) #define SECONDS_PER_YEAR (60 * 60 * 24 * 365)UL 考点: 1). #define 语法的基本知识(例如:不能以分号结束,括号的使用,等等) 2). 懂得预处理器将为你计算常数表达式的值,因此,直接写出你是如何计算一年中有多少秒而不是计算出实际的值,是更清晰而没有代价的。 3). 意识到这个表达式将使一个16位机的整型数...
1) 使用C语言写出以下函数,给你三个变量a,b,c,请不使用其他变量的情况下交换他们的值,使得a=b, b=c, c=a; 2) 使用C语言写出以下函数,给你一个用字符串表示的整数,请写一个函数把该字符串转化成为整数,并要求处理异常情况。函数体中的语句不能超过5句 就上面两个,想了一下不会做,高手来解答下呢!
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...
大哥大姐们,谁有Linux认证的考试题库啊,发给小弟一个,RHCT、RHCE、LPI 都可以,近期要考试,又没有那么长的时间复习,希望兄弟姐妹们帮帮忙。 如果可以的话请发到我的邮箱guoqiang00544(at)sohu.com 小弟将万分感谢!
第一部分 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...
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