3 喜歡 0 不喜歡
63 瀏覽

#include <stdio.h>

int main()

{

int *ptr1, *ptr2, i = 10, j = 20;

ptr1 = &i;

*ptr1 = 15;

ptr2 = &j;

*ptr2 = 5;

ptr2 = ptr1;

*ptr2 = 25;

ptr2 = &j;

*ptr2 += *ptr1;

 printf("Val = %d\n", j);

return 0;

}

 

References: C From Theory

[正常] 開放式問答 - 最新提問 分類:Introduction to Computer Programming I (C) | 用戶: (20.9k 分)
ID: 21929 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 63 瀏覽
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.70.34.17
©2016-2024

相關問題

5 喜歡 0 不喜歡
0 回答
[正常] 開放式問答 - 最新提問 2月 19, 2017 分類:Introduction to Computer Programming I (C) | 用戶: The Contributor (20.9k 分)
ID: 21975 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 142 瀏覽
5 喜歡 0 不喜歡
1 回答
[正常] 開放式問答 - 最新提問 2月 19, 2017 分類:Introduction to Computer Programming I (C) | 用戶: The Contributor (20.9k 分)
ID: 21973 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 174 瀏覽
5 喜歡 0 不喜歡
0 回答
[正常] 開放式問答 - 最新提問 2月 19, 2017 分類:Introduction to Computer Programming I (C) | 用戶: The Contributor (20.9k 分)
ID: 21972 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 136 瀏覽
4 喜歡 0 不喜歡
0 回答
[正常] 開放式問答 - 最新提問 2月 19, 2017 分類:Introduction to Computer Programming I (C) | 用戶: The Contributor (20.9k 分)
ID: 21966 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 116 瀏覽
4 喜歡 0 不喜歡
0 回答
[正常] 開放式問答 - 最新提問 2月 19, 2017 分類:Introduction to Computer Programming I (C) | 用戶: The Contributor (20.9k 分)
ID: 21964 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 124 瀏覽
12,783 問題
183,443 回答
172,219 留言
4,824 用戶