Forums.Sureshkumar.net : A Perfect Place to Share Knowledge         Blogs     Games    Magazines    

"Sharing knowledge does not lessen your store, often it gets you more. Sharing plays a key role in relationships and bonding, happens in small steps and is assisted through community membership."

Go Back   SURESHKUMAR.NET FORUMS > TECHNICAL DISCUSSIONS > DATA STRUCTURES, C, C++, VC ++ > ds. c , c++ Interview / Technical Questions
Register FAQ Members List Calendar Games Blogs Search Today's Posts Mark Forums Read

ds. c , c++ Interview / Technical Questions Kindly solve an many as questions you can. It will sharpen your skills and those solutions will help others too.

   

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 22-03-07, 02:25 PM   #1 (permalink)
Senior Member
 
Join Date: Oct 2006
Location: In Bangalore
Age: 24
Posts: 126
Thanks: 1
Thanked 6 Times in 6 Posts
Thanks: 1
Thanked 6 Times in 6 Posts
Rep Power: 0 jithendra.b will become famous soon enough
Data Structure question.

WAP to replace an item and node at a specified position in the list with a new item and
new node.
jithendra.b is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 22-03-07, 03:20 PM   #2 (permalink)
Senior Member
 
Join Date: Oct 2006
Location: In Bangalore
Age: 24
Posts: 126
Thanks: 1
Thanked 6 Times in 6 Posts
Thanks: 1
Thanked 6 Times in 6 Posts
Rep Power: 0 jithendra.b will become famous soon enough
Re: Data Structure question.

NODE replace(NODE first,int item,int pos)
{
int count = 1;
NODE cur = first;
NODE next,prev;
temp = getnode();
temp->info = item;
while(cur != NULL && count != pos)
{
prev = cur;
cur = cur->link;
count++;
}
prev->link = temp;
next = cur->link;
temp->link = next;
return first;
}
jithendra.b is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 13-08-07, 04:27 PM   #3 (permalink)
Junior Member
 
Join Date: Aug 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 2 Renu Aggarwal is on a distinguished road
Re: Data Structure question.

i am a fresher i don't knew how to start study data structure please help me . please reply .
Renu Aggarwal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 28-08-07, 03:53 PM   #4 (permalink)
Junior Member
 
Join Date: Aug 2007
Age: 25
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 2 sajishk@gmail.com is on a distinguished road
Re: Data Structure question.

I am a Fresher and I am much more interested in Learning the Concepts of Data Structs with eg (I am quite good at pointers and other topics). Please guide me and forwards the link if u have any at sajishk@gmail.com.
Ur prompt response is appreciated.Thanks
sajishk@gmail.com is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mega Free Download S/W Links A-Z yathish OTHERS 513 30-09-08 02:49 PM
ORACLE placement paper 7 sridhar ORACLE Placement Papers 0 09-02-07 06:44 PM
Data Warehousing and Online Analytical Processing kiran2710 OTHERS 0 07-02-07 05:08 PM
4C Solutions Pvt Ltd Hiring Data Analyst sridhar EXPERIENCED JOBS 0 25-10-06 02:10 AM
hi... gomesh_2k6 VB / ASP.NET Technologies 2 30-09-06 02:20 PM


All times are GMT +6.5. The time now is 01:19 PM.





Search Engine Optimization by vBSEO 3.1.0