answersLogoWhite

0

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

5y ago

What else can I help you with?

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.


What is generic subprogram?

A generic subprogram is a type of subprogram in programming that allows for the definition of algorithms or functions that can operate on different data types without being rewritten for each type. This is achieved through the use of type parameters, enabling the same code to handle various data types in a type-safe manner. Generic subprograms promote code reusability and reduce redundancy, making it easier to maintain and extend programs. They are commonly used in languages that support generics, such as C++, Java, and C#.


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.


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 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 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 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.


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 intrest