English

Identify in the following program. let rec gcd a b := if b <> 0 then gcd b (a mod b) else return a Identify the statement which tells it is a recursive function?

Advertisements

Question

Identify in the following program.

let rec gcd a b:=
      if b <> 0 then gcd b (a mod b) else return a

Identify the statement which tells it is a recursive function?

One Word/Term Answer
Advertisements

Solution

let rec

shaalaa.com
Function with Respect to Programming Language
  Is there an error in this question or solution?
Chapter 1: Function - Evaluation [Page 10]
Advertisements
Share
Notifications



      Forgot password?
Use app×