Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #4K
~562 People Reached
Favorite Forums

3 Posted Topics

Member Avatar for bflack

Because you are initializing memory only once.Initialize memory whenever you add a new element.So dont initialize for the head in the start.Initialize memory after the while loop and also you can initialize the value at the same time.

Member Avatar for N1GHTS
0
311
Member Avatar for rajsekhar28

SortedInsert() is a function which given a list that is sorted in increasing order, and a single node, inserts the node into the correct sorted position in the list.I know this code works fine.I am just curious to know why we can't use just single pointer to node to traverse …

Member Avatar for Ancient Dragon
0
141
Member Avatar for daredevil786

++ operator has higher preference than * so *ptr++ is essentially *(ptr++) and *++ptr means *(++ptr) and ++*ptr means ++(*ptr)

Member Avatar for Adak
0
110

The End.