2018-03-09 09:47:53 +01:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2018-03-12 15:20:16 +01:00
|
|
|
#include "func1.h"
|
|
|
|
|
2018-03-09 09:47:53 +01:00
|
|
|
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);
|
2018-03-12 15:20:16 +01:00
|
|
|
printf("Hallo Welt %d\n" ,func2(2));
|
2018-03-09 09:47:53 +01:00
|
|
|
local = sum(global, local);
|
|
|
|
return local;
|
|
|
|
}
|