FORTRAN Questions and Answers

Explain what is a logical variable? What does it store there?

Logical variables are used along with IF statements. When you want to set a logical variable to false, you use “LVAR=FALSE” and when you want to set as true, you use “LVAR=TRUE.” For false, computer usually stores an integer 0 in memory and, for true it stores as integer 1.