You'd be almost hired. The value is not undefined - it's the last local variable of the printf calling function. That's because functions take their parameters from the stack and local variables are also stored there. You can safely remove the second "%d".