C: Using scanf to assign more than one value.


Short demonstration of how scanf can be used to accept input for more than one variable assignment. In this case, an integer and a double are assigned. Note what happens when a double is entered for an integer, and vice versa.

Popular posts from this blog

C: Program That Calculates Pay Based On Salary And Hours.

C: Usage Of limits.h And float.h To Access Min And Max Constants.

C: Calculate Order Price Based On User's Input.