Skip to main content
deleted 33 characters in body
Source Link

74 charsC (46)

The stack pointer is sort of a random number

#include<stdio.h> 
int main(x){int x;printfprintf("%d",((unsigned char)&x)%100);}

Numbers I got:

20
40
4
52
36

74 chars

The stack pointer is sort of a random number

#include<stdio.h> 
int main(){int x;printf("%d",((unsigned char)&x)%100);}

Numbers I got:

20
40
4
52
36

C (46)

The stack pointer is sort of a random number

main(x){printf("%d",((unsigned char)&x)%100);}

Numbers I got:

20
40
4
52
36
deleted 20 characters in body
Source Link

C, 60

74 chars

The stack pointer is sort of a random number

#include <stdio#include<stdio.h> 
voidint main(){int x;printf("%d",(int(unsigned char)&x)%100);}

Numbers I got:

-108015026020
-107500658040
-10802368364
-107693242052
-107852901236

C, 60

The stack pointer is sort of a random number

#include <stdio.h> 
void main(){int x;printf("%d",(int)&x);}

Numbers I got:

-1080150260
-1075006580
-1080236836
-1076932420
-1078529012

74 chars

The stack pointer is sort of a random number

#include<stdio.h> 
int main(){int x;printf("%d",((unsigned char)&x)%100);}

Numbers I got:

20
40
4
52
36
improved formatting. still an invalid answer though.
Source Link
user12205
  • 9k
  • 3
  • 32
  • 65

C, 60

The stack pointer is sort of a random number

#include <stdio.h> 
void main(){int x;printf("%d",(int)&x);}

Numbers I got:

-1080150260
-1075006580
-1080236836
-1076932420
-1078529012

The stack pointer is sort of a random number

#include <stdio.h> 
void main(){int x;printf("%d",(int)&x);}

Numbers I got:

-1080150260
-1075006580
-1080236836
-1076932420
-1078529012

C, 60

The stack pointer is sort of a random number

#include <stdio.h> 
void main(){int x;printf("%d",(int)&x);}

Numbers I got:

-1080150260
-1075006580
-1080236836
-1076932420
-1078529012
Source Link
Loading