Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
2.3k views
in Computer by (52.7k points)

Discuss the following terms.

1. Function prototype

2. Actual arguments

3. formal arguments

4. local variable

5. Global variable.

1 Answer

0 votes
by (46.7k points)
selected by
 
Best answer

1. Function prototype: The declaration of a function before it is used or called is known as function prototype.

Ex: int demo (int, int, int);

2. Actual arguments: Actual parameters: the data that is passed by the calling function as arguments/parameters is known as actual arguments, i.e., the arguments which are present at the time of function call.

3. Formal arguments: Formal parameters: are the names of the argument/parameter in the function header of called function. Formal parameter values are used by the called function body.

4. Local (internal) Variables: The variables declared within function block are called local variables. A variable can be used only within the function where it is defined in. Such a variable is accessible only from the function or block in which it is declared.

5. Global Variables: They are the variables that are declared outside of main( ) function body or any other functional block. These variables can be used by all modules and functions in the program. 

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...