changing a value of a variable

Marcin Matuszkiewicz marcinm at finisar.com
Tue Jan 29 19:30:03 EST 2002


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;
}

Thank you,

Marcin



More information about the Python-list mailing list