Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- int main() {
- int numeros[3] = {5,10,15};
- int *pointnum = new int[10];
- for(int n=0; n!=10; n++)
- pointnum[n] = (n<sizeof(numeros)/4) ? (numeros[n]) : (0);
- for(int d=0; d!=10; d++)
- std::cout << pointnum[d] << std::endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement