Automatic variables are variables that are declared within the scope of a block, usually a function. They exist only within that scope, i.e. that block, and they cease to exist after the block is exited. These variables are usually allocated from the stack frame.
Chat with our AI personalities
There are mainly 3 types of variables in c. Integer, Float and character :)
Memory Organization for a process -------------------------------------------- CODE SEGMENT: contains executable code DATASEGMENT:contains static and global variable HEAP SEGMENT:Dynamically allocated variables will be in heap STACK SEGMENT:For local or automatic variables PREM G premgnath@gmail.com
Only global/static variables are, local variables aren't.
For global/static variables: yes.For auto variables: no.
At any given point of time you cann't get the address of a variables of java program. This is meant for security purpose only.