回顾面试问题。 [英] Regading interview Question.

查看:92
本文介绍了回顾面试问题。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



昨天我的朋友在Microsft接受采访。如果你知道这个

Plz回答这个

main()//第1行

{

printf(" TWO");

} // line4


你不能从line1改为line4。你只会在

主要功能之前添加任何东西。

用10种方式编写解决方案。

我们希望输出是 - >


一个

两个

三个

Hi,
Yesterday my friend had taken interview in Microsft.If u know this
Plz answer this
main() // line 1
{
printf("TWO");
} //line4

U don''t change from line1 to line4. u will add anything before the
main function only.
write the solution with 10 ways.
We want the ouput is->

One
Two
Three

推荐答案



skisho ... @ yahoo.co.in写道:

skisho...@yahoo.co.in wrote:

昨天我的朋友在Microsft接受了采访。如果你知道这个
Plz回答这个

main()//第1行


这是未定义的,因为它不是标准的main()函数。它至少应该返回一个int。

{
printf(" TWO");
} // line4
<你不能从第1行改为第4行。如果它是c ++,你将在


之前添加任何东西,只需创建一个静态对象,其构造函数打印

字符串并在进入main()之前对其进行初始化;

仅限主要功能。
用10种方式编写解决方案。
我们想要的输出是 - >

一个
两个
Hi,
Yesterday my friend had taken interview in Microsft.If u know this
Plz answer this
main() // line 1
this is undefined because it is not a standard main() function. It
should return an int at least.
{
printf("TWO");
} //line4

U don''t change from line1 to line4. u will add anything before the
if it is c++, just create a static object whose constructor prints the
strings and initialize it before entering main();
main function only.
write the solution with 10 ways.
We want the ouput is->

One
Two
Three






是它仅限c ++。

Yes It is in c++ only.


sk*******@yahoo.co.in 写道:

昨天我的朋友在Microsft接受了采访。如果你知道这个
Plz回答这个
Hi,
Yesterday my friend had taken interview in Microsft.If u know this
Plz answer this




我想知道为什么每个人电子邮件地址以.co.in结尾说话

inPlz和U。这是某种L33T印度英语吗?!!!



I wonder why everyone with an email addresses ending in .co.in speaks
in "Plz" and "U". Is this some sort of L33T Indian English??!!!


这篇关于回顾面试问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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