Quote:
Have you have any ideas why it prints me this big number?
Yes, your program print what you requested, but you requested wrong.
Quote:
int nr_procs;
Here you declare an uninitialized variable, you don't put a value in it, and then you print the random value that is in it.
You forgot to feed the variable with a value.
You need
int nr_procs;
nr_procs= something;
printf("processes: %d\n",nr_procs);