--- uugnaa altaa <[EMAIL PROTECTED]> wrote: > I guess, it is more likely the question about > pointer to pointer. > > useing pointer to pointer, you can store address of > the pointer, that is it. > > int **src, *dst; > dst = 200 > *src = dst; > > something like this .., > > anu radha <[EMAIL PROTECTED]> wrote: > Hello all, > > 2 days back i attended an interview > where i was asked a question.The question is "how to > give one address to other address without the using > any variables".(i.e) suppose one location is 200 and > other is 800 how to make 800=200(making address 800 > as 200) directly....(using only addresses). > > i googled it but did'nt find an appropriate > answer... > > please help.... > > thanx in advance.. > The statement dst = 200; will give an error. You cannot assign an address to a pointer.
Ray ____________________________________________________________________________________ Need Mail bonding? Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users. http://answers.yahoo.com/dir/?link=list&sid=396546091
