Advertisement
Guest User

Untitled

a guest
Jan 31st, 2015
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <iostream>
  3. #include <stdlib.h>
  4. using namespace std;
  5.  
  6. int main(){
  7.    
  8.     int alma[] = {1,2,3,4};
  9.     cout << *alma << '\n' << *(alma + 1) << '\n';
  10.  
  11.    
  12.     int *suti = (int*) malloc(sizeof(int)*2);
  13.     suti[0] = 1;
  14.     suti[1] = *(alma + 1);
  15.     cout << *suti << '\n' << *(suti + 1);
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement