C_CPP/01_ENV/MP/main_plain.c

20 lines
288 B
C
Raw Normal View History

2018-03-09 09:47:53 +01:00
#include <stdio.h>
int global = 8150;
int sum(int a, int b){
int result = 451;
result = a + b;
return result;
}
int main(int argc, char **argv)
{
int local=4711;
printf("Hello, world!\nglobal=%d local=%d\n", global, local);
local = sum(global, local);
return local;
}