什么印刷? [英] What is printed?

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

问题描述

什么打印到屏幕上?


#include< stdio.h>


int main(void)

{

printf(" Hello!\ n");

fclose(stdout);

printf(" ;再见!\ n");

返回0;

}

What is printed to the screen?

#include <stdio.h>

int main(void)
{
printf("Hello!\n");
fclose(stdout);
printf("Goodbye!\n");
return 0;
}

推荐答案

DJ写道:
什么打印到屏幕上?

< stdio.h>

int main(void)
{
printf(" Hello!\ n");
fclose(stdout);
printf(" Goodbye!\ n");
返回0;
}
What is printed to the screen?

#include <stdio.h>

int main(void)
{
printf("Hello!\n");
fclose(stdout);
printf("Goodbye!\n");
return 0;
}




你好!


然而,在哪里再见! "去?这是默认行为吗?


-

一个人的自由停止在其他人开始的地方


Giannis Papadopoulos
http://dop.users.uth.gr/

塞萨利大学

电脑&通信工程部门



"Hello!"

However, where "Goodbye!" goes? Is this default behaviour?

--
one''s freedom stops where other''s begin

Giannis Papadopoulos
http://dop.users.uth.gr/
University of Thessaly
Computer & Communications Engineering dept.


" DJ" <安******** @ comcast.net>在消息中写道

新闻:SM ******************** @ comcast.com ...
"DJ" <An********@comcast.net> wrote in message
news:SM********************@comcast.com...
什么打印到屏幕上?

#include< stdio.h>

int main(无效)
{/> printf(" Hello! \ n");
fclose(stdout);
What is printed to the screen?

#include <stdio.h>

int main(void)
{
printf("Hello!\n");
fclose(stdout);




我想嗨。无论如何,这是一个变态代码。


Alex



I suppose just hi. What a pervert code anyway.

Alex


" Giannis Papadopoulos" < IP ****** @ inf.uth.gr>在消息中写道

news:dc ********** @ volcano1.grnet.gr ...

....
"Giannis Papadopoulos" <ip******@inf.uth.gr> wrote in message
news:dc**********@volcano1.grnet.gr...
....
fclose(stdout);
printf(" Goodbye!\ n");
fclose(stdout);
printf("Goodbye!\n");



....但是,在哪里再见!去?这是默认行为吗?


.... However, where "Goodbye!" goes? Is this default behaviour?




我希望默认为undefined。并且应用程序可能会在两个函数调用中崩溃。


Alex



I''d expect default to be undefined. And the app may crash at either of those
two function calls.

Alex


这篇关于什么印刷?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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