fork(1) download
  1. #include <stdio.h>
  2.  
  3. int counter = 200;
  4.  
  5. int main(void)
  6. {
  7. int (*fp)(void);
  8. printf("Loopy %d\n", counter);
  9. fp = &main; //point to main function
  10. if (counter--) {
  11. fp(); //call 'main'
  12. }
  13. return 0;
  14. }
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
Loopy 200
Loopy 199
Loopy 198
Loopy 197
Loopy 196
Loopy 195
Loopy 194
Loopy 193
Loopy 192
Loopy 191
Loopy 190
Loopy 189
Loopy 188
Loopy 187
Loopy 186
Loopy 185
Loopy 184
Loopy 183
Loopy 182
Loopy 181
Loopy 180
Loopy 179
Loopy 178
Loopy 177
Loopy 176
Loopy 175
Loopy 174
Loopy 173
Loopy 172
Loopy 171
Loopy 170
Loopy 169
Loopy 168
Loopy 167
Loopy 166
Loopy 165
Loopy 164
Loopy 163
Loopy 162
Loopy 161
Loopy 160
Loopy 159
Loopy 158
Loopy 157
Loopy 156
Loopy 155
Loopy 154
Loopy 153
Loopy 152
Loopy 151
Loopy 150
Loopy 149
Loopy 148
Loopy 147
Loopy 146
Loopy 145
Loopy 144
Loopy 143
Loopy 142
Loopy 141
Loopy 140
Loopy 139
Loopy 138
Loopy 137
Loopy 136
Loopy 135
Loopy 134
Loopy 133
Loopy 132
Loopy 131
Loopy 130
Loopy 129
Loopy 128
Loopy 127
Loopy 126
Loopy 125
Loopy 124
Loopy 123
Loopy 122
Loopy 121
Loopy 120
Loopy 119
Loopy 118
Loopy 117
Loopy 116
Loopy 115
Loopy 114
Loopy 113
Loopy 112
Loopy 111
Loopy 110
Loopy 109
Loopy 108
Loopy 107
Loopy 106
Loopy 105
Loopy 104
Loopy 103
Loopy 102
Loopy 101
Loopy 100
Loopy 99
Loopy 98
Loopy 97
Loopy 96
Loopy 95
Loopy 94
Loopy 93
Loopy 92
Loopy 91
Loopy 90
Loopy 89
Loopy 88
Loopy 87
Loopy 86
Loopy 85
Loopy 84
Loopy 83
Loopy 82
Loopy 81
Loopy 80
Loopy 79
Loopy 78
Loopy 77
Loopy 76
Loopy 75
Loopy 74
Loopy 73
Loopy 72
Loopy 71
Loopy 70
Loopy 69
Loopy 68
Loopy 67
Loopy 66
Loopy 65
Loopy 64
Loopy 63
Loopy 62
Loopy 61
Loopy 60
Loopy 59
Loopy 58
Loopy 57
Loopy 56
Loopy 55
Loopy 54
Loopy 53
Loopy 52
Loopy 51
Loopy 50
Loopy 49
Loopy 48
Loopy 47
Loopy 46
Loopy 45
Loopy 44
Loopy 43
Loopy 42
Loopy 41
Loopy 40
Loopy 39
Loopy 38
Loopy 37
Loopy 36
Loopy 35
Loopy 34
Loopy 33
Loopy 32
Loopy 31
Loopy 30
Loopy 29
Loopy 28
Loopy 27
Loopy 26
Loopy 25
Loopy 24
Loopy 23
Loopy 22
Loopy 21
Loopy 20
Loopy 19
Loopy 18
Loopy 17
Loopy 16
Loopy 15
Loopy 14
Loopy 13
Loopy 12
Loopy 11
Loopy 10
Loopy 9
Loopy 8
Loopy 7
Loopy 6
Loopy 5
Loopy 4
Loopy 3
Loopy 2
Loopy 1
Loopy 0