15,796,982 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Python questions
View PHP questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 15046944 (Top 4 by date)
Member 15046944
15-Jan-21 11:48am
View
So, how to deallocate a node is only known to the client code who is using linked list. Hence linked list will take function pointers to call those respective functions
Member 15046944
15-Jan-21 11:46am
View
during insertion/deletion you call those callback functions.
e.g., delete operation will take another param of function pointer type. And inside your delete function you will invoke the callback. This way the client code is responsible for allocating/deallocating memory for the node data. The linked list will only call the callback function for insertion/deletion
Member 15046944
15-Jan-21 11:43am
View
I don't wanna pass size as the function parameter
I want to implement a separate function for allocation/deallocation of node data
Member 15046944
15-Jan-21 11:41am
View
I have implemented the generic linked list with the following code given
Code has no errors but now I want to implement the following changes
1)Not passing the size in push function
2)for memory allocation and deallocation of the node data I want to implement a separate function