मराठी
तामिळनाडू बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान इयत्ता १२

Which of the following is a normal function definition and which is a recursive function definition. let rec sum num: if (num!=0) then return num + sum (num-1) else return num - Computer Science

Advertisements
Advertisements

प्रश्न

Which of the following is a normal function definition and which is a recursive function definition.

let rec sum num:
   if (num!=0) then return num + sum (num-1)
   else
   return num

एका वाक्यात उत्तर

उत्तर

Recursive function

shaalaa.com
Introduction to Function
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 1: Function - Evaluation [पृष्ठ ९]

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 12 TN Board
पाठ 1 Function
Evaluation | Q 5. iii) | पृष्ठ ९
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×