Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more ➡
Download
Standard view
Full view
of .
Add note
Save to My Library
Sync to mobile
Look up keyword or section
Like this
7Activity
×
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

Availability:

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

10/25/2011

pdf

text

original

 
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
typedefstruct{
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

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