s*t
2 楼
i have an EB1-b I140 pending since Feb 2011 ... and now my EB2 got approved.
Do I need to withdraw my EB1-b case (I will have two A#) and how to?
Thanks.
Do I need to withdraw my EB1-b case (I will have two A#) and how to?
Thanks.
l*o
3 楼
ooops
d*i
4 楼
至少vc对以下的烂函数很宽容,只是个编译期warning - "not all control paths
return a value"
int yy=0;
int test_func()
{
if(yy>0)
return 1;
}
而且奇怪的是它能正常运行,无疾而终。
int dd=test_func();
接受返回值的dd还是默认值,没受影响。
不理解啊。
求指点。谢谢!
return a value"
int yy=0;
int test_func()
{
if(yy>0)
return 1;
}
而且奇怪的是它能正常运行,无疾而终。
int dd=test_func();
接受返回值的dd还是默认值,没受影响。
不理解啊。
求指点。谢谢!
d*p
7 楼
Cool news - a sign of Mac's increased adoption by engineering customers :-)
c*4
9 楼
gxgx
a*a
12 楼
re
d*n
14 楼
编译器接受了某个代码并不代表代码是正确的。
首先看看test_func()在C的abstract machine上是如何运行的,if(yy>0)是false,
所以程序会执行到 "}", 然后标准规定(n1570 6.9.1):
If the } that terminates a function is reached, and the value of the
function call is used by
the caller, the behavior is undefined.
int dd = test_func()这条语句正好符合上边的描述,所以你的代码
里存在未定义行为,C标准允许编译器做任意的事情。
【在 d******i 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: 至少vc对以下的烂函数很宽容,只是个编译期warning - "not all control paths
: return a value"
: int yy=0;
: int test_func()
: {
: if(yy>0)
: return 1;
: }
: 而且奇怪的是它能正常运行,无疾而终。
: int dd=test_func();
首先看看test_func()在C的abstract machine上是如何运行的,if(yy>0)是false,
所以程序会执行到 "}", 然后标准规定(n1570 6.9.1):
If the } that terminates a function is reached, and the value of the
function call is used by
the caller, the behavior is undefined.
int dd = test_func()这条语句正好符合上边的描述,所以你的代码
里存在未定义行为,C标准允许编译器做任意的事情。
【在 d******i 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: 至少vc对以下的烂函数很宽容,只是个编译期warning - "not all control paths
: return a value"
: int yy=0;
: int test_func()
: {
: if(yy>0)
: return 1;
: }
: 而且奇怪的是它能正常运行,无疾而终。
: int dd=test_func();
z*o
15 楼
GXGX!!!
baozi pls
baozi pls
Y*G
16 楼
x86上return xxx就是将xxx放到寄存器EAX。调用者看EAX来获得函数的返回值。
如果没有return语句等于执行隐含的return语句,返回值无定义,是垃圾。
如果没有return语句等于执行隐含的return语句,返回值无定义,是垃圾。
f*n
21 楼
gxgx!!!
do u have lawyer? u can get ans from him. my personal take is yes.
do u have lawyer? u can get ans from him. my personal take is yes.
t*y
23 楼
GXGX!!!
baozi pls
baozi pls
d*8
25 楼
祝贺你。
x*e
31 楼
gongxi!我觉得你应该withdraw你的EB1。
L*a
33 楼
cong
rebaozi
rebaozi
h*8
35 楼
恭喜恭喜
e*m
36 楼
恭喜,包子·
c*y
38 楼
gxgx!
G*e
39 楼
congrats
w*e
41 楼
gxgx
相关阅读
[bssd]我说个笑话Azure UI 真是难受The American AI Initiative一个AI程序可以在 gce app engine部署机器,但用 aws dynamoDB 吗?open source ERP and CRM调度问题,说个笑话给大家听产品 release 了以后在线视频中间mobile user掉线重连的问题老魏这盖楼的本事太厉害了google cloud卖什么公司能翻盘?NASA Evolved antenna ten years agoGeneral AI这次starcraft的论文出来了吗?请教高手:python 的machine learning 算法 production code 在有些需要?请问有简单例子吗?Locking question: 2 Application modify the same mysql database后端短期内似乎很难再有其他变化为啥Linux这种上古架构竟然能一统服务器的江湖?java这样写有没有问题?Blazor有人玩吗?这东西要是成熟,所有的现有JS框架全得完蛋吧?