セクション 1. 章 6
single
Challenge: Pointer Arithmetic
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
Sometimes in programming, you may want to access the value of a variable indirectly using a pointer.
In this task, you will write a function that starts with one variable, moves a pointer to another variable, and returns the value stored there.
- Calculate the distance between the two pointers by subtracting the address of
p_startfrom the address ofp_target. - Add this difference to the
p_startpointer. This gives you a pointer to the value stored inp_target. - Return the value pointed to by
p_start.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 1. 章 6
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください