C_CPP/01_ENV/main_plain.c

20 lines
288 B
C

#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;
}