1 votes 1 votes In the following program add a statement in the function fun() such that address of a gets stored in j; main() { int *j; void fun(int **); fun(&j); } void fun(int **K) { int a=10; /*add statement here*/ } answer is *k=&a; can anyone explain this . Programming in C programming-in-c + – Nitesh Choudhary asked Jun 5, 2017 Nitesh Choudhary 417 views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply anumita commented Jun 6, 2017 reply Follow Share which part you did not understand ? 0 votes 0 votes mehatasonia1 commented Jun 6, 2017 reply Follow Share You must have a good strategy while preparing for GATE exam. Plan you strategies ahead and work accordingly, then you won’t find cracking GATE exam that difficult. I have shared a blog which can help you in strategizing your study and gate coaching online. Hope you will find it helpful. Best of Luck 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes func(&j) func(int **k) by this the address of j is passed to k K=200, j is at address 200 now *k=&a => address of a is passed to *k i.e the place where k is pointing k is pointing to j as it has the adress of j thereby stores value of a in j A_i_$_h answered Jun 17, 2017 A_i_$_h comment Share Follow See all 0 reply Please log in or register to add a comment.