you have n't initialised the variable i with any value:
let's say i=2000
then
j=2000+2*2 since integral pointers take 2 bytes
=2004
k=2000
gururaj bo <[EMAIL PROTECTED]> wrote:
gururaj bo <[EMAIL PROTECTED]> wrote:
--- sudhan_rect <[EMAIL PROTECTED]> wrote:
> Hi all,
> I need the explanation for the following program.
> If you could help
> me...please do so.
>
> void main ()
> {
> int *i,*j,**k;// i& j int pointer and k is
pointer to pointer to int
> j = i+2;// initializing j, this is allowed
> *k = i; // initializing k to i, since K is PtoP
> printf ("*k = %u , j = %u , i = %u ",*k,j,i);
> }
>
> With Regards,
> MADHUSUDHAN.S
> ...Knowledge is Power...
>
>
>
>
>
>
>
__________________________________
Do you Yahoo!?
Yahoo! Mail - 250MB free storage. Do more. Manage less.
http://info.mail.yahoo.com/mail_250
To unsubscribe : [EMAIL PROTECTED]
Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage. Learn more.
To unsubscribe : [EMAIL PROTECTED]
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To reply to this message, go to:
http://groups.yahoo.com/group/Programmers-Town/post?act=reply&messageNum=4929
Please do not reply to this message via email. (more info)
- To visit your group on the web, go to:
http://groups.yahoo.com/group/Programmers-Town/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
