•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C section within the Software Development category of DaniWeb, a massive community of 391,557 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,694 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C advertiser:
Views: 3028 | Replies: 6 | Solved
![]() |
•
•
Join Date: Feb 2007
Location: Bangalore, India
Posts: 535
Reputation:
Rep Power: 4
Solved Threads: 50
Here is a link that gives you links for function pointer tutorials.
http://www.google.com/search?q=funct...inter+tutorial
Given you've already implemented stack, you already know that part. If you are looking for something more specific, you'll have to make the question specific.
http://www.google.com/search?q=funct...inter+tutorial
Given you've already implemented stack, you already know that part. If you are looking for something more specific, you'll have to make the question specific.
Are you Agile.. ?
> I am very confused. How in the world are you going to implement a stack using function pointers?
I guess he means by using dynamic memory allocation, using a node structure which holds the data as well as the pointer to the next node.
I guess he means by using dynamic memory allocation, using a node structure which holds the data as well as the pointer to the next node.
"I don't accept change. I don't deserve to live."
"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
That doesn't involve function pointers though 
Mentioning function pointers must be a sign of being completely lost, since there's only a finite constant set of values a function pointer can attain in any given executable; you might as well implement a stack using a bounded set of integers, or something crazy like that.

Mentioning function pointers must be a sign of being completely lost, since there's only a finite constant set of values a function pointer can attain in any given executable; you might as well implement a stack using a bounded set of integers, or something crazy like that.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb C Marketplace
Similar Threads
- Integer Stack Copy Function (C++)
- Function pointers inside classes (C++)
- problems with function pointers (C)
- stack of linked lists (C++)
Other Threads in the C Forum
- Previous Thread: arrays
- Next Thread: help with prime numbers!



Linear Mode