NPAR is useful in subprograms with OPTIONAL parameters. NPAR can be used to determine which parameters were present in the calling argument list. An attempt to use a parameter which was not present results in an error. NPAR returns a zero in the main program.