answersLogoWhite

0


Best Answer

Because by checking the data type, errors can

be detected before the program runs. So it

makes us easier to repair the program.

User Avatar

Anonymous

Lvl 1
3y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why is type checking the parameters of a subprogram important?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is overloaded subprogram?

subprogram overloading is a process of using the same (function) name for many subprograms. the overloaded subprograms may differ in the number, type or order of its its parameters.java, c++ and c# provides the feature of subprogram overloading . when an overloaded subprogram is called,java or c++ compiler first checks the subprogram name and then the number and type of parameters are analyzed to decide which version of the overloaded subprogram must be chosen for execution. this process is also known as 'polymorphism'. the return type of a subprogram has no affect on subprogram overloading whereas it is used to differentiate between the calls in ADA. hence,two overloaded functions in ADA can have the same parameter profile with different return values.


Does a subprogram always return a value to the program or subprogram that calls it?

No. In some languages PROCEDUREs don't return a value, FUNCTIONs do; in C (and derivatives) return-type void means no return value. Example:void Hello (const char *msg) { puts (msg); }


What is type checking?

Type checking is the processes of identifying errors in a program based on explicitly or implicitly stated type information.


What are the growth parameters of fish?

Fish growth is influenced by factors like water temperature, food availability, genetics, and water quality. Optimal growth parameters vary among fish species, but generally, warmer water temperatures and abundant food lead to faster growth. Water quality parameters such as oxygen levels and pH also play a role in fish growth and health.


What is static type checking?

Static type checking is type checking that can be done at compile time at no runtime cost, as opposed to dynamic type checking which can only be done at runtime. Dynamic type checking is most commonly utilised when you hold a pointer to a base class of a polymorphic type, but where you need to know the actual type at runtime. However, dynamic type checking can largely be avoided by utilising virtual functions to implement a common interface. In this way, you get the correct behaviour without needing to know the actual type. Although virtual functions come with a (small) cost in terms of memory consumption and performance, the cost is trivial compared to dynamic type checking.


What type of errors may be prevented by checking source documents?

Checking source errors would prevent factual errors. It is important to use trusted sources, and primary documents tend to be the most reliable.


When format command is typed into a command promt what parameters can be added along with it explain each parameters?

On the system you are referring to type "format /?" to get the commands and syntax.


What is the difference between value type parameters and reference type parameters?

When a variable is passed by value, the function receives a copy of the variable. When a variable is passed by reference, the function receives a reference, or pointer, to the original data.


What option is used for the windows 'ping' command to continue until stopped?

The option is "-t".Type ping /? to get a list of options. The same parameters, /?, is used for many other commands, too.The option is "-t".Type ping /? to get a list of options. The same parameters, /?, is used for many other commands, too.The option is "-t".Type ping /? to get a list of options. The same parameters, /?, is used for many other commands, too.The option is "-t".Type ping /? to get a list of options. The same parameters, /?, is used for many other commands, too.


What is type of saving vehicle?

Checking account


What is a type of savings vehicle?

Checking account


What is a type of checking account that also earns interest these accounts generally have a minimum balance?

A type of checking account that also earns interest is called an interest-bearing checking account. These accounts typically require a minimum balance to be maintained in order to earn interest.