discover的cashback换什么最划算啊?# Money - 海外理财
T*J
1 楼
【 以下文字转载自 Programming 讨论区 】
发信人: ThomasJ (JY), 信区: Programming
标 题: 问个面试的编程题目
发信站: BBS 未名空间站 (Sat Jan 2 23:23:23 2010, 美东)
现场让30分钟做完
50 char *b, q, *r;
200 b = getbuf ();
201 q = *b;
212 R = anotherfunction (b);
213-2003 /* we want to use 'q' and 'r' here */
2000 char * getbuf ()
2001 {
2002 char buff [8];
2003-2050 /* unspecified buff defined here */
2051 return (char*) buff;
2052 }
1. What will be in variable 'q' after line 201 is executed? Under
what conditions might this not be so?
2. Is t
发信人: ThomasJ (JY), 信区: Programming
标 题: 问个面试的编程题目
发信站: BBS 未名空间站 (Sat Jan 2 23:23:23 2010, 美东)
现场让30分钟做完
50 char *b, q, *r;
200 b = getbuf ();
201 q = *b;
212 R = anotherfunction (b);
213-2003 /* we want to use 'q' and 'r' here */
2000 char * getbuf ()
2001 {
2002 char buff [8];
2003-2050 /* unspecified buff defined here */
2051 return (char*) buff;
2052 }
1. What will be in variable 'q' after line 201 is executed? Under
what conditions might this not be so?
2. Is t