[ create a new paste ] login | about

Link: http://codepad.org/4edFbwyq    [ raw code | output | fork ]

C, pasted on Oct 13:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>

void apple(char *str)
{
  str = "def";
}

int main(void)
{
  char s[] = "abc";
  apple(s);
  printf("%s\n",s);
  return 0;
}


Output:
1
abc


Create a new paste based on this one


Comments: