Computer Programming
ENCT 101
Question
2081 ChaitraChapter 7: User-Defined Functions7.6 Category of Functions
Write a program to find the reverse of a number [Suppose $N$]. The program must take value of $N$ from main(), find the reverse of $N$ from user-defined function named FindRev() and display the reverse of $N$ from the main(). Write the output of following program and explain the result with reference to the concept of the storage class.
#include<stdio.h>
int main(){
static int a=5;
printf("Value of a is: %d\n",a);
a=a+10;
if(a<20)
main();
return 0; }Add an answerChecking contribution access...