Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <signal.h>
- #include <stdint.h>
- #include <unistd.h>
- uint32_t c = 0;
- void alrm(int a) {
- printf("%d\n", c);
- exit(0);
- }
- typedef float testtype;
- int main(){
- signal(SIGALRM, alrm);
- alarm(10);
- testtype n;
- while (1) {
- n += n * n;
- ++c;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement