Monday, June 26, 2017

stackoverflow

#include<limits.h>
#include<stdio.h>

void overflow(int n)
{
  if(n == INT_MAX){
    return;
  }
  printf("%d",n);
  n= overflow(n+1);
}

int main()
{
  overflow(1);
  return 0;
}

No comments:

Post a Comment