Code: Select all
#include <stdio.h>
typedef unsigned short uint16;
uint16 x, y;
static uint16 printHello() {
printf("\nHello");
return 1;
}
static uint16 hello(uint16 a, uint16 b) {
uint16 result = 0;
if(a + b > x - y){
result = printHello();
}
return result;
}
void main() {
x = 2000;
y = 1000;
hello(600,600);
}
Code: Select all
zcc +zx -vn -clib=sdcc_ix --max-allocs-per-node10000 -startup=0 .\Bug.c -o bug -create-app