C_CPP/01_ENV/main.c

25 lines
366 B
C

#include <stdio.h>
#include "func1.h"
int global = 8150;
int sum(int,int);
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);
printf("Hallo Welt %d\n" ,func2(2));
local = sum(global, local);
return local;
}