SHARE
TWEET

WTF CALLOC

a guest Apr 9th, 2015 210 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(int argc, char const *argv[])
  5. {
  6.         int* a = (int*)calloc(100,sizeof(int));
  7.         a[200] = 10;
  8.         printf("%d\n", a[200]);
  9.         return 0;
  10. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top