Logical C Programming Questions