Jan 17 - a.next=NULL; b.next=NULL; pa->id=0;...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Jan 17, 2006, ECE106 Pointers Int x; Int *p; Double *q; Struct node{ Int id; Struct node *next; }; Struct node a; Struct node b; Struct node * pa; Struct node * pb; Pa = new struct node; Pb = new struct node; (*pa).id = 0; (*pb).id = 1; (*pa).value = 519; (*pa).value=80; Pa->id=0; a.id=0; b.id=0;
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: a.next=NULL; b.next=NULL; pa->id=0; pa->next=NULL; pa->next=pb; pa->next->id=2; struct node *head; srtuct node *p; p=new struct node; p->id=0; p->next=NULL; head=p; p=new struct node; p->id=; head->next=p; p=new struct node; head->next->next=p; p=NULL;...
View Full Document

This note was uploaded on 04/17/2008 for the course ECE ECE106 taught by Professor Abdelrahman during the Spring '08 term at University of Toronto- Toronto.

Page1 / 2

Jan 17 - a.next=NULL; b.next=NULL; pa->id=0;...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online