3 like 0 dislike
115 views

#include <stdio.h>

int main()

{

int *ptr1, *ptr2, *ptr3, i = 1, j = 2, k = 3;

ptr1 = &i;

ptr2 = &j;

ptr3 = &k;

*ptr1 = *ptr2 = *ptr3;

k = i + j;

printf("%d\n", *ptr3);

return 0;

}

 

References: C From Theory

[Normal] Essay (Open question) - asked in Introduction to Computer Programming I (C) by (20.9k points)
ID: 21922 - Available when: Unlimited - Due to: Unlimited
| 115 views
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.70.174.43
©2016-2024

Related questions

3 like 0 dislike
0 answers
[Normal] Essay (Open question) - asked Feb 12, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21933 - Available when: Unlimited - Due to: Unlimited
| 111 views
3 like 0 dislike
0 answers
[Normal] Essay (Open question) - asked Feb 12, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21932 - Available when: Unlimited - Due to: Unlimited
| 96 views
3 like 0 dislike
0 answers
[Normal] Essay (Open question) - asked Feb 12, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21928 - Available when: Unlimited - Due to: Unlimited
| 109 views
3 like 0 dislike
0 answers
[Normal] Essay (Open question) - asked Feb 12, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21924 - Available when: Unlimited - Due to: Unlimited
| 93 views
3 like 0 dislike
0 answers
[Normal] Essay (Open question) - asked Feb 12, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21921 - Available when: Unlimited - Due to: Unlimited
| 118 views
12,783 questions
183,443 answers
172,219 comments
4,824 users