[ create a new paste ] login | about

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

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

int main(void)
{
char name[]="Jenny";
int number=8675309;
int *ptr=&number;
char n='N';
char o='O';
printf ("%s %s who can I turn to? \n",name, name);
printf ("%d \n", number);
printf ("Oh shit wrong number! It is not %d, it is actually %p \n", *ptr, &number);
printf ("Wait wait wait... thats not a phone number you idiot. Try %d \n", ptr);
printf ("%c - %c, no. Just give up.",n,o);
return 0;
}


Output:
1
2
3
4
5
Jenny Jenny who can I turn to? 
8675309 
Oh shit wrong number! It is not 8675309, it is actually 0xbf8cdb90 
Wait wait wait... thats not a phone number you idiot. Try -1081287792 
N - O, no. Just give up.


Create a new paste based on this one


Comments: