解释这个c代码...... [英] explain this c code...

查看:65
本文介绍了解释这个c代码......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个让我难以解决的难题。

我自己尝试了但是无法得到完整的答案。

所以我在这里寻求你的帮助。



任何人都可以告诉我这个c代码的o / p而不编译......


main( _){for(--_; putchar(_ ++ [" SEJBT!SPDLT\1"] - 1););}


编译时打印&bbsp; RDIAS ROCKS"。

This one is a puzzle a fren has challenged me to solve.
I tried it myself but could not get the complete answer.
so here I am to seek ur help.


Can anyone tell me the o/p of this c code without compiling...

main(_){for(--_;putchar(_++["SEJBT!SPDLT\1"]-1););}

on compiling it prints "RDIAS ROCKS".

推荐答案


这是一个让我难以解决的难题。

我自己尝试过,但无法得到完整的答案。

所以我在这里寻求你的帮助。



可以有人告诉我这个c代码的o / p没有编译...


main(_){for(--_; putchar(_ ++ [" SEJBT!SPDLT] \ 1"] - 1););}


编译时打印RDIAS ROCKS。
This one is a puzzle a fren has challenged me to solve.
I tried it myself but could not get the complete answer.
so here I am to seek ur help.


Can anyone tell me the o/p of this c code without compiling...

main(_){for(--_;putchar(_++["SEJBT!SPDLT\1"]-1););}

on compiling it prints "RDIAS ROCKS".



我不是交流编译器,但代码不能编译。

难题应该是如何制作它编译?

I''m not a c compiler but that code won''t compile.
Is the puzzle supposed to be how to make it compile?



我不是交流编译器,但代码不能编译。

是这个难题应该是如何让它编译?
I''m not a c compiler but that code won''t compile.
Is the puzzle supposed to be how to make it compile?



除了''main(_)''thingie之外,它编译并通过命名

argc参数来混淆问题'' _''并使用[i]作为i [a]在C中是完全合法的。

它打印该字符串中的所有字符减1,所以最后一个字符停止

for循环;那个节目先生,我考虑了婴儿混淆101 :-


亲切的问候,


Jos(< ---伟大的DeObfuscator罢工再次; - )

Except for just the ''main(_)'' thingie it compiles and it obfuscates matters by naming
the argc parameter ''_'' and by using a[i] as i[a] which is perfectly legal in C.
It prints all the characters from that string minus1, so the last character stops
the for loop; that program Sir, I consider baby obfuscation 101 :-P

kind regards,

Jos (<--- the grand DeObfuscator strikes again ;-)



除了''main(_)''之外,它编译并通过命名来混淆事务/>
argc参数''_''并使用[i]作为i [a],这在C中完全合法。

它打印该字符串中的所有字符minus1 ,所以最后一个角色停止了

for循环;那个节目先生,我考虑了婴儿混淆101 :-


亲切的问候,


Jos(< ---伟大的DeObfuscator罢工再次;-)
Except for just the ''main(_)'' thingie it compiles and it obfuscates matters by naming
the argc parameter ''_'' and by using a[i] as i[a] which is perfectly legal in C.
It prints all the characters from that string minus1, so the last character stops
the for loop; that program Sir, I consider baby obfuscation 101 :-P

kind regards,

Jos (<--- the grand DeObfuscator strikes again ;-)



Argh,我正在使用c ++编译命令。

Argh, I was using a c++ compile command on it.


这篇关于解释这个c代码......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆