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

33 videos

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.
33 videos
Explore Courses for Database Management exam
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

Important questions

,

Semester Notes

,

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

,

past year papers

,

video lectures

,

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

,

shortcuts and tricks

,

practice quizzes

,

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

,

Viva Questions

,

Free

,

ppt

,

Sample Paper

,

Exam

,

Objective type Questions

,

pdf

,

study material

,

Extra Questions

,

mock tests for examination

,

Summary

,

MCQs

,

Previous Year Questions with Solutions

;