Content deleted Content added
Jorge Stolfi (talk | contribs) question on name spaces for strutcs |
→Type punning: new section |
||
Line 12:
typedef struct ListNode { int val; struct ListNode *next; } ListNode;
That is, it is not necessary to use different names (ListNode_ and ListNode) for the two C views of wha is essentially the same data type.<br/>All the best, --[[User:Jorge Stolfi|Jorge Stolfi]] ([[User talk:Jorge Stolfi|talk]]) 21:57, 15 May 2009 (UTC)
== Type punning ==
:"''For example, common Internet protocols rely on the fact that C compilers insert padding between struct fields in predictable ways [...]''"
Is this an example of [[type punning]]? --[[User:Abdull|Abdull]] ([[User talk:Abdull|talk]]) 22:52, 2 January 2010 (UTC)
|