C Programming - Pointers - Discussion

Discussion Forum : Pointers - Find Output of Program (Q.No. 5)
5.
What will be the output of the program If the integer is 4bytes long?
#include<stdio.h>

int main()
{
    int ***r, **q, *p, i=8;
    p = &i;
    q = &p;
    r = &q;
    printf("%d, %d, %d\n", *p, **q, ***r);
    return 0;
}
8, 8, 8
4000, 4002, 4004
4000, 4004, 4008
4000, 4008, 4016
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
35 comments Page 4 of 4.

Divya said:   7 years ago
Thanks @Sunil Pradhan.
(2)

Reddy Royal said:   5 years ago
Thanks @Kiran Kumar.

Shashank sinha said:   1 decade ago
Thanx Jyoti

Taniya said:   1 decade ago
Thanx all.

Sunil said:   1 decade ago
Thanks


Post your comments here:

Your comments will be displayed after verification.