Advertisement

C question

Started by April 08, 2002 03:27 AM
13 comments, last by alargeduck 22 years, 10 months ago
What?
quote:
Original post by alargeduck
Say i have a header file that defines a certain structure, and creates an instance of it. Say:

struct



There is no struct .
Advertisement
I Say Some one delete this stupid post.
quote:
Original post by Anonymous Poster
I Say Some one delete this stupid post.



There is no post .

To the vast majority of mankind, nothing is more agreeable than to escape the need for mental exertion... To most people, nothing is more troublesome than the effort of thinking.
To the vast majority of mankind, nothing is more agreeable than to escape the need for mental exertion... To most people, nothing is more troublesome than the effort of thinking.
ooh man i didnt even mean to post this, i thought i canceled it... it was meant to be a perfectly valid question but... um...

I decided that I could solve my question by experimentation, and did. Why this got posted, I have no idea.

If anyone is wondering, my question was meant to be something like:

if i create an instance of a struct in a header file, say:

struct t_console
{
char text[TEXTSIZE];
int line;
...
} console;

and include that header file in many source files, do i get multiple instances of that structure?

Apparenly during linking, blah blah, and there is only one instance.

[edited by - alargeduck on April 8, 2002 2:16:36 PM]

This topic is closed to new replies.

Advertisement