Redian新闻
>
Samsung S2 高清 720P finally here
avatar
Samsung S2 高清 720P finally here# PDA - 掌中宝
b*n
1
我发现不管平时用什么,如果面试的人跟你工作不同,碰上奇怪的问题,真的
不能当实际问题来回答。今天碰到个问题,如果global variable被initialize
两次,比如在一个文件declare,另外一个文件extern然后也initialize。我说
link的时候就有问题了,电面的人还是问如果可以,会怎么样。。都link不了,
你说执行的时候会怎么样。。以前都是跟工作类似的公司面试,现在发现面试
还是要准备,才能知道问题问什么,有时候跟实际经验真的要分开
avatar
w*g
2
http://www.androidauthority.com/att-samsung-galaxy-s2-hd-lte-re
In the two months that passed since the AT&T Samsung Galaxy S2 HD LTE (or
the Skyrocket HD for short) was officially announced at CES 2012, rumors and
leaks regarding the supposedly last upgrade in the Galaxy S2 series have
failed to surface. In fact, with all that quad-core madness that surrounded
the Mobile World Congress, it’s fair to say that the dual-core Skyrocket HD
has avoided (or was avoided by) the online media spotlight altogether.
However, its flight below the radar ended today, as the Galaxy S2 HD LTE has
received its clearance from the FCC.
The phone’s specs were officially announced back in January, so the
official FCC documents aren’t what one would call juicy. Nevertheless, they
do clarify that the Skyrocket HD LTE will use AT&T’s LTE 700 / 1700 bands.
Furthermore, the papers reveal that Samsung has designed two different
battery covers for the smartphone: one that includes an NFC antenna, and one
that doesn’t. Considering that AT&T bypassed NFC functions on some of
their previous smartphones, there are voices claiming that the carrier will
repeat the offense and remove NFC capabilities from the Skyrocket HD. On the
other hand, it’s also possible that the NFC antenna will be included in
the battery, as was the case with the original AT&T Samsung Galaxy S2
Skyrocket.
Although the papers don’t reveal anything out of the ordinary, they do hint
that we’re getting close to the Skyrocket HD’s release date. Usually,
when a device hits the FCC, we’re about to see a release date in the
following month or so. It’s not a rule by any means, but it would make
sense for AT&T to plan a launch for the Skyrocket LTE HD before the Galaxy
S3 is announced (and that should happen at some point before the end of
April).
The AT&T Skyrocket HD sports a 1.5 dual-core processor, 1GB of RAM, LTE
connectivity, and a generous 4.65-inch Super AMOLED display capable of 1280
x 720 (HD) pixel resolution. So far, there is no info regarding the release
date or price for the Skyrocket HD LTE, but we’ll keep you posted when
fresh info pops out!
avatar
a*c
3
In C,
If there are only (one or more) common symbols for a variable, it goes in
the uninitialized data area of the output file. The linker merges multiple
common symbols for the same variable into a single symbol. If they are of
different sizes, it picks the largest size. The linker turns a common symbol
into a declaration, if there is a definition of the same variable.
avatar
b*n
4
which compiler do you use? gcc never allows me to do anything like this..
i mean mainly ld complains about duplicate symbol

symbol

【在 a***c 的大作中提到】
: In C,
: If there are only (one or more) common symbols for a variable, it goes in
: the uninitialized data area of the output file. The linker merges multiple
: common symbols for the same variable into a single symbol. If they are of
: different sizes, it picks the largest size. The linker turns a common symbol
: into a declaration, if there is a definition of the same variable.

avatar
o*s
5
multiple definition error
avatar
a*c
6
sorry I think I read the question wrong. You are right.
I thought the original question was "if a global variable is already
initialized, and there's another one with the same name declared
somewhere else, what would happen?"
Anyway, I think either the interviewer asked the question wrong, or he
did it on purpose to trick you and you saw through it.

this..

【在 b******n 的大作中提到】
: which compiler do you use? gcc never allows me to do anything like this..
: i mean mainly ld complains about duplicate symbol
:
: symbol

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。