Menu
Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
Functions taking pointers to different types as arguments
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Mikhail Teterin, post: 2398228"] No, it is not. Your analogy is flawed for two reasons: 1. Both of the different data pointers in my question are pointers to structures (gzFile, known externally as void, and FILE), although different structures. Such pointers are interchangable. 2. I'm not trying to assign any values to the memory being pointed to by these either (no dereferencing) -- just passing them down to functions (gzgetc, fgetc), which know how to deal with them. There is also another pair of pointers in my example -- pointers to functions (gzgetc and fgetc). This confusion may have led you to the flawed analogy, but, unlike pointers to _different_ data-types, pointers to functions are interchangable too. -mi [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Functions taking pointers to different types as arguments
Top