All pastes #218369 Raw Edit

Anonymous

public c v1 · immutable
#218369 ·published 2006-10-24 03:56 UTC
rendered paste body
#include <stdio.h>#include <string.h>int x = 2;int y = 3;int main (int argc, char *argv[]){  int *ptrMyPointer;  int iMyInt = 7;  ptrMyPointer = &iMyInt;  printf ("Result %d \n" , multiply ( x, y));  printf ("x = %d y = %d\n", x, y);  multiply_unpassed();  printf ("x = %d y = %d\n", x, y);  printf ("iMyInt = %d ptrMyPointer = %d *ptrMyPointer = %d\n", iMyInt,    ptrMyPointer, *ptrMyPointer);  change_value(ptrMyPointer);  printf ("iMyInt = %d ptrMyPointer = %d *ptrMyPointer = %d\n", iMyInt,    ptrMyPointer, *ptrMyPointer);}int multiply ( int x, int y ){  return x * y;}int multiply_unpassed (){  x = x + 1;  return 0;}int change_value (int *ptrMyPointer){  *ptrMyPointer = 9;  return 0;}