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 { ... } ; ?
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

Posting Serialized Data Not Working
I am trying to send an object from one PHP file to another using POST. I serialize the object and th

how to export excel file in same server
My first post - php newbie, so appreciate your support.

I'm currently using headers to save w

webpage with (simple) login & mysql-db
Hi all,

What I was looking for before was a multi-user password manager, web-based! The offer

do while conditions
i want to display 6 images in a 2x3 table
now what would be the correct logic to
count that th

Save cookie to DB
I'm working on a pixel tracking script for an incentive website and I need to use an ASP script to s

Help with some dates
I have a list of dates in an array:

$mondays = array(
strtotime("October 12, 2009

ok i need to join all this pages to make 1 neat code
i have 5 pages that make up my tv guide it works 100% but i want to make it 1 page if i can or 2, i

Ten Operator Syntax
Hi Guys,

I can't figure out why i am getting a parse error with this basic ten op code:

Suggestions for Functional module
Hello experts,
I Have done B.Sc(Mathematics) and MCA & have learnt SAP/ABAP but do n

reorder sql query
ok so i have this very simple code:
Code: $query = "SELECT search_keywords, COUNT(search_key

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