top of page

Variable Types

To use variables in C we first have to know which variable to use in each scenario. In C, we must use separate variables for full integers and decimal numbers, separate variables for numbers and letters, and even separate variables from letters and strings.

We will look at each basic data type:

vartypes.png

Trying to input a decimal number into a type which does not support decimal places will end up omitting the decimal and not function correctly. Inputting numbers which are greater or less than the range of the data type will also cause issues in the program.

  • Twitter
  • LinkedIn
  • discord-logo--v2
  • kisspng-github-pages-logo-repository-fork-github-logo-1-magentys-5b69de71b51265

Dragon Eye Intelligence LLC

bottom of page