update demo.c

test behavior of function at when overflow