@abhi
we can do it without passing the address to a function. just store the
address of const variable in another variable and change the value...

On Mon, Jul 18, 2011 at 11:56 AM, Abhi <abhi123khat...@gmail.com> wrote:

> Perhaps the only way to alter the value of a variable declared constant in
> C is through passing its address to a function and changing the value
> henceforth though it generates a warning of 'discarding the qualifiers'.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/algogeeks/-/SbHlNcA7Fj8J.
>
> To post to this group, send email to algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

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

Reply via email to