Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <iostream>
- #include <stdlib.h>
- using namespace std;
- int main(){
- int alma[] = {1,2,3,4};
- cout << *alma << '\n' << *(alma + 1) << '\n';
- int *suti = (int*) malloc(sizeof(int)*2);
- suti[0] = 1;
- suti[1] = *(alma + 1);
- cout << *suti << '\n' << *(suti + 1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement