Results 1 to 5 of 5
Hybrid View
-
11th December 2010 19:04 #1Registered User
Join Date: Jun:2010
Location:
Posts: 171
, , (*head) , ?
pointer to pointer
Code:void pop(student **head) { student *temp=*head; *head=(*head)->Next;//a free(*temp); }Last edited by lludmill; 11th December 2010 at 19:30.
If you understand what you're doing, you're not learning anything.
-
11th December 2010 22:05 #2Registered User
Join Date: Dec:2007
Location: Sofia
Posts: 366
, '->' - '*'.
,
.Code:*head=*(head->Next);
-
11th December 2010 22:16 #3Registered User
Join Date: Aug:2003
Location:
Posts: 175
(* head) . :
head head->Next , head Next, (student *) . *head = temp->Next temp - *head.Code:*head=*(head->Next)
. - int . ( , ). - ( ):
, . .Code:int x=5, y=7, z=14; int *p = &x; // p x int **pp = &p; // pp p *p = 4; // x=4 **pp = 3; // x=3, *pp p, **pp *p *pp = &y; // p=&y *p = 8; // y=8, p y **p = 9; // y=9; p = &z; // **pp = 15; // z 15, pp p, p z.
Last edited by ivv; 2nd January 2011 at 18:15.
-
12th December 2010 03:36 #4Registered User
Join Date: Jun:2010
Location:
Posts: 171
---------- 02:36 ---------- 02:07 ----------
If you understand what you're doing, you're not learning anything.
-
12th December 2010 12:03 #5




Reply With Quote

Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in