changing a value of a variable
Aahz Maruch
aahz at panix.com
Tue Jan 29 20:11:15 EST 2002
In article <dbaf973c.0201291630.273edb44 at posting.google.com>,
Marcin Matuszkiewicz <marcinm at finisar.com> wrote:
>How to write a python program that accomplishes the same thing as the
>C program below.
>
>void assign(int *x)
>{
> *x = 1;
>}
>
>int main(void)
>{
> int n = 0;
>
> /* n == 0 */
> assign(n);
> /* n == 1 */
>
> return 0;
>}
Did you try compiling and running this C program?
--
--- Aahz <*> (Copyright 2002 by aahz at pobox.com)
Hugs and backrubs -- I break Rule 6 http://www.rahul.net/aahz/
Androgynous poly kinky vanilla queer het Pythonista
"I support family values -- Addams family values" --www.nancybuttons.com
More information about the Python-list
mailing list