[ create a new paste ] login | about

Link: http://codepad.org/2Zibjb5j    [ raw code | output | fork ]

appunti2 - C, pasted on Apr 30:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>

void elabora (int *p)
{
    p[0] = 10;
    p[1] = 100;
    p[2] = 1000;
}

int main (void)
{
    int a[3];

    elabora (a);
    printf ("%i %i %i \n",  a[0], a[1], a[2]);

    return 0;
}


Output:
1
10 100 1000 


Create a new paste based on this one


Comments: