What is going to be the output of the following program?#inc…

What is going to be the output of the following program?#includevoid myFunction();int num=1;int main(){    int num=3;    printf(“%d\n”, num);      myFunction();        printf(“%d\n”, num);    myFunction();       return 0;}void myFunction(){       static int num=2;       num++;      printf(“%d\n”, num);      printf(“%d\n”, num);}

Consider the following recursive function designed to print…

Consider the following recursive function designed to print the digits of a positive integer in their natural order (e.g., 1367 becomes 1 3 6 7).void displayDigits(int n){       if (n >= 10)      {           displayDigits(n / 10); // Recursive call        }       printf(“%d “, n % 10);   // Print operation}What would happen if the printf line was moved to be above the if statement line?