1 votes 1 votes what is the output of the following program ?? papesh asked Apr 12, 2017 papesh 577 views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply dd commented Apr 12, 2017 reply Follow Share going back and searching for old invalid stuff does not guarantee us with exact correct value always. 0 votes 0 votes papesh commented Apr 12, 2017 reply Follow Share Hey ! Not getting can u explain ?? 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes 'p' must be output Learner_jai answered Apr 12, 2017 Learner_jai comment Share Follow See all 6 Comments See all 6 6 Comments reply akash.dinkar12 commented Apr 12, 2017 reply Follow Share how??? 0 votes 0 votes Learner_jai commented Apr 12, 2017 reply Follow Share in *get(), this function will return address body( p variable is stored with char p; s pointer variable storing the address of p; return s means -> it will return the value it is holding , ->it is holding address of p) *(get())//first address it will get from function (from variable s) ->variable s is holding add of p *(address) 'p' –2 votes –2 votes papesh commented Apr 12, 2017 reply Follow Share My point is that after returning from get() data from stack will be wiped off .. Isn't it ?? That is char p is not available 1 votes 1 votes Learner_jai commented Apr 12, 2017 reply Follow Share i agree with you, my explanation is inappropriate, thanks for correcting 0 votes 0 votes papesh commented Apr 12, 2017 reply Follow Share But ans is correct as I'm too getting same but why ?? 0 votes 0 votes Learner_jai commented Apr 12, 2017 reply Follow Share Explanation of debashish deka sir is appropriate in my view 0 votes 0 votes Please log in or register to add a comment.