嘿大家。只需要一个简单的澄清:) [英] Hey everyone. Just a simple clarification needed :)

查看:51
本文介绍了嘿大家。只需要一个简单的澄清:)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

就是答案:

执行下面的代码后,

temp

的价值是多少?解释你的回答。

is the answer to this:
What is the value of
temp
after executing the code below? Explain your
answer.

int   temp, values[6]  = {3, 4, 5, 1, 2, 8};
temp =  *(values + 2);







只需5 ??



谢谢




Just 5??

Thanks

推荐答案

是的,它是5但你要回答的问题是为什么。这是你的家庭作业,不是我们的。



练习的目的是看你是否理解发生了什么,而不是我们这样做。
Yeah, it's 5. But the question YOU have to answer is why. This is your homework assignment, not ours.

The point of the exercise is to see if YOU understand what's going on, not if we do.


听起来你需要阅读数组和指针。看看这个 [ ^ ]然后看看你是否能理解它。
Sounds like you need to read up on arrays and pointers. Have a look at this[^] and see if you can understand it then.


这篇关于嘿大家。只需要一个简单的澄清:)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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