Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » C++ language problems and code snippets » article "Reading C type declarations" for C++ newbies or ignorants like me ;)
article "Reading C type declarations" for C++ newbies or ignorants like me ;) [message #30171] Mon, 13 December 2010 11:34 Go to next message
mr_ped is currently offline  mr_ped
Messages: 825
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
http://unixwiz.net/techtips/reading-cdecl.html
Re: article "Reading C type declarations" for C++ newbies or ignorants like me ;) [message #30174 is a reply to message #30171] Mon, 13 December 2010 13:01 Go to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Quote:

char *(*(**foo [][8])())[];
foo is array of array of 8 pointer to pointer to function returning pointer to array of pointer to char
...
We have no idea how this variable is useful, but at least we can describe the type correctly.

Very Happy

Interesting article, cleared thing a bit for me... But I can't imagine someone would voluntarily use variable of type similar to the one quoted above without wrapping it in at least three typedefs Smile

Honza
Previous Topic: Detect when a key is pressed!
Next Topic: Creation of a static .lib with MSC in U++
Goto Forum:
  


Current Time: Thu Mar 28 16:23:18 CET 2024

Total time taken to generate the page: 0.01298 seconds