沉吟丹青 2020-09-09 10:21 采纳率: 70%
浏览 75
已采纳

c++ 语言 求数组表达式的输出 求大神解答

求每个表达式的输出。 如果该表达式输出单个字母,请指明其来自哪个单词(例如:意式浓缩咖啡的第一个个s)。

char things[6][15] = {“espresso”,
“cappuccino”,
“latte”,
“breve”,
“french press”,
“tasty”};

a) cout << things[1];

b) cout << things[1] + 3;

c) cout << *things[4];

d) cout << *(things + 2);

e) cout << *(*things + 2);

f) cout << ((things +4)+2);

  • 写回答

1条回答 默认 最新

  • threenewbee 2020-09-09 12:08
    关注
    cappuccino
    puccino
    f
    latte
    p
    0xxxxxxxxx (地址,*((things +4)+2) = 'p')
    

    问题解决的话,请点下采纳

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?