Static Declarations
From: AnandRaj (anandrm_at_gmail.com)
Date: 08/19/04
- Previous message: Joakim Hove: "Re: macro containing include statement"
- Next in thread: Joona I Palaste: "Re: Static Declarations"
- Reply: Joona I Palaste: "Re: Static Declarations"
- Reply: Christian Bau: "Re: Static Declarations"
- Reply: Tim Rentsch: "Re: Static Declarations"
- Reply: Sydney Faria: "Re: Static Declarations"
- Reply: Joe Wright: "Re: Static Declarations"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 19 Aug 2004 00:21:07 -0700
Hi guys,
I have a few doubts in C.
1. Why static declartions are not allowed inside structs?
eg
struct a {
static int i;
};
Throws an error ..
2.How does the complier diffrenciate between a Global Variable and
Static Variable as both of them will be in the same stack?
Any pointers wud be helpful!
Is there any book or site which gives details abt how the memory is handled for
diffrent variables?
TIA
Anand
- Previous message: Joakim Hove: "Re: macro containing include statement"
- Next in thread: Joona I Palaste: "Re: Static Declarations"
- Reply: Joona I Palaste: "Re: Static Declarations"
- Reply: Christian Bau: "Re: Static Declarations"
- Reply: Tim Rentsch: "Re: Static Declarations"
- Reply: Sydney Faria: "Re: Static Declarations"
- Reply: Joe Wright: "Re: Static Declarations"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]