Given an integer number the following C program finds the sum of the digits of the number using recursion. You need to complete the recursive…
Given an integer number the following C program finds the sum of the digits of the number using recursion. You need to complete the recursive function in the following program. So that it does the intended task.
#include<stdio.h>
int someDigits(int num){
________________________
________________________
________________________
________________________
}
int main(){
int n;
scanf("%d",&n);
printf("%d", sumDigits(n));
return 0;
}From the BTCL Assistant Manager (Technical) 2021 – Written (BUET) exam, question 3 of 8.