From the course: Introduction to Fortran
Unlock the full course today
Join today to access over 23,200 courses taught by industry experts.
Expression demonstration - FORTRAN Tutorial
From the course: Introduction to Fortran
Expression demonstration
- [Instructor] In this video, we're going to go through an in-depth explanation and demonstration of the mechanics of how an expression gets evaluated. Here's the program we're going to step through evaluating. You can see that the expression here is a bit complicated and there are some places that implicit type conversions will occur. Let's step through the details of how this gets evaluated by going over to the whiteboard and doing it by hand. I've copied the relevant portions of the program over to the whiteboard and gone ahead and reserved space for the variables that we have declared here. I haven't reserved space for the integer parameter value because it won't change. So we don't really need a place to go look that up. We could probably already go ahead and replace it in our program, if need be. But for now, let's just start stepping through the program. So first, we have our y equals five statement. So that's…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Chapter intro: The basics47s
-
(Locked)
Variables3m 32s
-
(Locked)
Detailed variable behavior demonstration5m 38s
-
(Locked)
Named constants1m 55s
-
(Locked)
Expressions, order of operations, and type conversions2m 57s
-
(Locked)
Expression demonstration5m 33s
-
(Locked)
Conditional constructs5m 36s
-
(Locked)
Looping constructs4m 37s
-
(Locked)
Arrays3m 49s
-
-
-
-