Home  |  IT Zone  |  Tips / Tricks  |  Did You Know  |  Inspirational  |  Health  |  World Infos  |  Insurance  |  Universities  |  Forex  |  Mathematics  |  Illusions  |  Children Day Quotes  |  Fun / Jokes  |  Decent Quotes  |  Birthday Msgs  |  Good Morning Msgs  |  Good Night Msg  |  Husband Wife Jokes  |  Teacher Students Jokes  |  Insult Jokes  |  Love Quotes  |  Sad Quotes  |  Funny Pics  |  Be Aware  |  Articles  |  Simple Joys of Life 

What is integer variable?

  • The variable declared by using percent sign (%) as the last character of the variable name is integer variable. 
  • The declaration of a variable as an integer causes the variable's value to be rounded to the closest integer, i.e. whole number if the value is not already an integer.
  • For example:
    • if variable A = 15.5, its value in the entire program will be 15.5, but if it is declared as A% = 15.5, then the value of the variable will be 16.

Share :

Twitter
Back To Top

facebook main

Powered by Blogger.