0 votes 0 votes closed as a duplicate of: const pointer The output of below code is_______________. int main() { int i = 120; int *a = &i; foo(&a); printf("%d ", *a); printf("%d ", *a); } void foo(int **const a) { int j = 210; *a = &j; printf("%d ", **a); } Programming in C programming-in-c + – Hira Thakur asked Nov 18, 2017 • closed Nov 18, 2017 by Arjun Hira Thakur 352 views comment Share Follow See all 3 Comments See all 3 3 Comments reply Nitesh Choudhary commented Nov 18, 2017 reply Follow Share 210(because we cannot the value of a but we can change value of *a and **a) garbage value( because after function complete we dont know the value of address &j) garbage value( because after function complete we dont know the value of address &j) 0 votes 0 votes Hemant Parihar commented Nov 18, 2017 reply Follow Share Why are you asking the same question again? You forget that you had already asked this question and someone gave every beautiful answer. :P https://gateoverflow.in/132985/const-pointer 1 votes 1 votes Arnabi commented Nov 18, 2017 reply Follow Share 210 210 garbage value 0 votes 0 votes Please log in or register to add a comment.