Pascal standard library provides numerous built-in functions that your program can call. A function definition provides the actual body of the function. Every Pascal program has at least one function, which is the program itself, and all the most trivial programs can define additional functions.Ī function declaration tells the compiler about a function's name, return type, and parameters. Procedures − these subprograms do not return a value directly.Ī function is a group of statements that together perform a task. Pascal provides two kinds of subprograms −įunctions − these subprograms return a single value. This is basically called the 'Modular design.' A subprogram can be invoked by a subprogram/program, which is called the calling program. These subprograms are combined to form larger programs. A subprogram is a program unit/module that performs a particular task.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |