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);}
Read Details