Struct/union and scope problem!


Posted on 16th Feb 2014 07:03 pm by admin

HI all , I have
Code: in header.h typedef struct Node Link; /* -----------------------*/ in source.c struct Node { /* some stuff ; */ }; /* some more code here */ /*---------------------------------*/ in main.c Link p; /* do whatever ... */
so that Node definition is hidden from other modules.
But what if main.c has declaration struct Node { ... } ; ?
Did you know?Explore Trending and Topic pages for more stories like this.
Link will become pointer to that Node ??
No comments posted yet

Your Answer:

Login to answer
254 Like 38 Dislike
Previous forums Next forums
Other forums

Multiple submit forms inside a mysql array page
Hi all,

Im having trouble to get the beneath script to work the thing i can't seem to get wor

Transferring session variables into MySQL
I am trying to transfer $_SESSION variables into MySQL. However there is an error in my MySQL statem

Looping Problem
I've got a client that has a database with about 200 events at any given time. I'm trying to loop t

try catch error
I have been trying try catch but, I can't get it to work. The code opens a non existing file called

UTL File problem
Hi
I have a file in certain path with the following permissions (The file is a dummy file witho

Creating Images from images in PHP
Okay well I am trying to make a 'dynamic' calender image with PHP.

I have images like this:

Scene graph using Direct3D?
There are several C++ scene graph based packages available for OpenGl, like say OSG,

http://w

Xml parsing
I need a suggestion about parsing xml with multiply parts like pervious...
i.e. different device

Quick Syntax Question
Hi folks,

I'm getting the following error: "unexpected T_LNUMBER". I'm trying to b

Creating a custom API
I'm creating a site, and I need to create a basic API. Unfortunately I have no idea where to start.

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash