3 like 0 dislike

#include <stdio.h>

int main()

{

int *ptr1, *ptr2, arr[] = {1, 2, 3, 4, 5};

ptrl = &arr[0];

ptr2 = &arr[3];

printf("%d\n", ptr1[ptr2 - ptrl]);

return 0;

}

 

References: C From Theory

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

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
| 122 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
| 128 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
| 108 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: 21922 - Available when: Unlimited - Due to: Unlimited
| 130 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
| 130 views
13,482 questions
204,493 answers
183,719 comments
4,999 users