代码效应 [英] Code Effect

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

问题描述

以下代码有什么影响?


char Ch;


Ch ='''7'';


printf("%d \ n",Ch);

What is the effect of the following code?

char Ch;

Ch = ''7'';

printf("%d\n", Ch);

推荐答案

可供选择的是:


a。它会导致错误


b。它将打印出计算机内部代码,用于字符7


c。它将打印出'7'字符


d。它将打印出内部代码为7的字符。Daniel Antonson <安******** @ comcast.net>在消息中写道

新闻:Qo ******************** @ comcast.com ...
The choices available are:

a. It will cause an error

b. It will print out the computer''s internal code for the character ''7''

c. It will print out the character ''7''

d. It will print out the character whose internal code is 7
"Daniel Antonson" <An********@comcast.net> wrote in message
news:Qo********************@comcast.com...
什么是以下代码的效果?

char Ch;

Ch =''7'';

printf("%d \\ \\ n",Ch);
What is the effect of the following code?

char Ch;

Ch = ''7'';

printf("%d\n", Ch);



在文章< -_ ************** ****** @ comcast.com>,

Daniel Antonson< An ******** @ comcast.net>写道:
In article <-_********************@comcast.com>,
Daniel Antonson <An********@comcast.net> wrote:
Daniel Antonson <安******** @ comcast.net>在消息中写道
新闻:Qo ******************** @ comcast.com ...
"Daniel Antonson" <An********@comcast.net> wrote in message
news:Qo********************@comcast.com...
有什么影响以下代码?
char Ch;
Ch =''7'';
printf("%d \ n",Ch);
What is the effect of the following code? char Ch; Ch = ''7''; printf("%d\n", Ch);



可供选择的是:
a。这将导致错误


The choices available are: a. It will cause an error




是的。你不能在文件范围内调用函数,因此代码将不会按原样编译。

-

"谁领导? /男人必须......驱使男人,强迫男人。

怪胎男人。

你们都是怪胎,先生。但你一直都是怪胎。

生活是一个怪胎。这是它的希望和荣耀。 - Alfred Bester,TSMD



Yup. You can''t call a function at file scope, so the code will
not compile as-is.
--
"Who Leads?" / "The men who must... driven men, compelled men."
"Freak men."
"You''re all freaks, sir. But you always have been freaks.
Life is a freak. That''s its hope and glory." -- Alfred Bester, TSMD


On Sun,2005年7月3日00:41:37 -0400,Daniel Antonson写道:
On Sun, 03 Jul 2005 00:41:37 -0400, Daniel Antonson wrote:
可供选择的是:

它会导致错误

b。它将打印出计算机内部代码,用于7字符。

c。它会打印出'7'字符。

d。它将打印出内部代码为7的字符。Daniel Antonson <安******** @ comcast.net>在消息中写道
新闻:Qo ******************** @ comcast.com ...
The choices available are:

a. It will cause an error

b. It will print out the computer''s internal code for the character ''7''

c. It will print out the character ''7''

d. It will print out the character whose internal code is 7
"Daniel Antonson" <An********@comcast.net> wrote in message
news:Qo********************@comcast.com...
有什么影响以下代码?

char Ch;

Ch =''7'';

printf("%d \ n", Ch);
What is the effect of the following code?

char Ch;

Ch = ''7'';

printf("%d\n", Ch);




您选择了哪一个?


--Mac



Which one did you choose?

--Mac


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

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