Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more ➡
Standard view
Full view
of .
Add note
Save to My Library
Sync to mobile
Look up keyword or section
Like this
P. 1
Lec 8 Linked Lists

Lec 8 Linked Lists

Ratings: (0)|Views: 469|Likes:
Published by faizan260690

More info:

Published by: faizan260690 on Apr 14, 2010
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See More
See less





Dept. of CSE, IIT KGP
Linked Lists
CS10001:Programming & Data Structures
Sudeshna Sarkar
Dept. of Computer Sc. & Engg.,Indian Institute of TechnologyKharagpur
Arrays: pluses and minuses
Dept. of CSE, IIT KGP
+ Fast element access.--Impossible to resize.
Many applications require resizing!
Required size not always immediately available.
Dynamic memory allocation: review
Dept. of CSE, IIT KGP
inthiTemp;intloTemp;double precip;
} WeatherData;intmain () {intnumdays;WeatherData* days;scanf(“%d”, &numdays) ;days=(WeatherData*)malloc(sizeof(WeatherData)*numdays);if (days == NULL) printf(“Insufficient memory”);...free (days);}

Activity (7)

You've already reviewed this. Edit your review.
1 hundred reads
syaiful bachtiar liked this
loosar liked this
loosar liked this
naduu89 liked this
naduu89 liked this
prakashnmd liked this

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->