Database Management Exam  >  Database Management Videos  >  Introduction to Fortran Programming (AdvancedLevel)  >  Advanced Fortran Programming : 015 : Dummy Variables in functions

Advanced Fortran Programming : 015 : Dummy Variables in functions Video Lecture | Introduction to Fortran Programming (AdvancedLevel) - Database Management

FAQs on Advanced Fortran Programming : 015 : Dummy Variables in functions Video Lecture - Introduction to Fortran Programming (AdvancedLevel) - Database Management

1. What are dummy variables in Fortran programming?
Ans. Dummy variables in Fortran programming are variables that are used as placeholders or temporary storage during the execution of a subroutine or function. They are declared within the subroutine or function and are used to pass values between the calling program and the subroutine or function.
2. How are dummy variables used in functions?
Ans. Dummy variables in functions are used to receive the values passed from the calling program and perform calculations or manipulations on those values. The results of the calculations are then returned to the calling program using the dummy variables.
3. Can a function in Fortran have multiple dummy variables?
Ans. Yes, a function in Fortran can have multiple dummy variables. These variables can be used to receive and manipulate multiple values passed from the calling program. Each dummy variable should be appropriately declared and used within the function's body.
4. What is the purpose of using dummy variables in functions?
Ans. The purpose of using dummy variables in functions is to enable the passing of values between the calling program and the function. By using dummy variables, the function can receive input values, perform calculations or manipulations on those values, and then return the results back to the calling program.
5. Can dummy variables have the same names as variables in the calling program?
Ans. Yes, dummy variables can have the same names as variables in the calling program. However, it is good programming practice to use different names to avoid confusion and potential errors. By using different names, it becomes clearer which variables belong to the function and which belong to the calling program.
Related Searches

Previous Year Questions with Solutions

,

practice quizzes

,

mock tests for examination

,

past year papers

,

Advanced Fortran Programming : 015 : Dummy Variables in functions Video Lecture | Introduction to Fortran Programming (AdvancedLevel) - Database Management

,

pdf

,

study material

,

video lectures

,

Viva Questions

,

Advanced Fortran Programming : 015 : Dummy Variables in functions Video Lecture | Introduction to Fortran Programming (AdvancedLevel) - Database Management

,

Advanced Fortran Programming : 015 : Dummy Variables in functions Video Lecture | Introduction to Fortran Programming (AdvancedLevel) - Database Management

,

Extra Questions

,

Sample Paper

,

Exam

,

Summary

,

Important questions

,

Semester Notes

,

shortcuts and tricks

,

Free

,

ppt

,

Objective type Questions

,

MCQs

;