[SOLVED] CS #include

$25

File Name: CS_#include.zip
File Size: 103.62 KB

5/5 - (1 vote)

#include
#include
#include

int i = 1;

int main(void)
{
int j = 10;
int *k = malloc(sizeof(int));

*k = 4;

if (fork()) {
i = i + 1;
j = j 1;
*k = *k * 1;
} else {
i = i + 2;
j = j 2;
*k = *k * 2;
}

printf(i=%d, &i=%p
, i, &i);
printf(j=%d, &j=%p
, j, &j);
printf(k=%d, &k=%p
, *k, &k);

return 0;
}

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] CS #include
$25