changing a value of a variable

Marcin Matuszkiewicz marcinm at finisar.com
Wed Jan 30 01:30:03 CET 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