See, a is defined in main() therefore its scope is limited to main(). It is
stored probably in main()'s stack
When you pass it to a function as a pointer. You don't make a copy of 'a'
onto the function's stack.
The only way you can view, manipulate it is using a pointer, and that
pointer is your only reference to the value that is stored somewhere else.
That's why.

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to