This commit is contained in:
2025-05-23 03:26:13 +03:00
parent 191705c1dc
commit 4e9b002e99
14 changed files with 307 additions and 0 deletions

View File

@ -0,0 +1,21 @@
#include <stdio.h>
#define MAX 10
/* function prototype */
void functionName(const int b[], size_t startSubscript, size_t size);
/* function main begins program execution */
int main(void)
{
/* initialize p */
int p[MAX] = {5, 7, 2, 1, 0, 4, 3, 0, 6, 8};
puts("Answer is:");
functionName(p, 0, MAX);
puts("");
} /* end main */
/* What does this function do? */
void functionName(const int b[], size_t startSubscript, size_t size)
{
if (startSubscript < size) {
functionName(b, startSubscript + 1, size);
printf("%d", b[startSubscript] * 5);
} /* end if */
} /* end function someFunction */