Advertisement
FatalSleep

Untitled

Jul 7th, 2014
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include <iostream>;
  2. using namespace std;
  3.  
  4. int main( void ) {
  5. int* Buffer = new int[ 255 , 255 , 255 ];
  6. Buffer[ 0 , 0 , 0 ] = 255;
  7. cout << ( int ) Buffer[ 1 , 0 , 0 ] << endl;
  8. delete[] Buffer;
  9.  
  10. int xx;
  11. cin >> xx;
  12. return 0;
  13. };
  14.  
  15. /*
  16. For some reason the entire Buffer array is 255 rather than only 1,0,0...
  17. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement