โช Choose the correct option.
What will be the output of the following program?
#include
struct CrackexamsArray {
int arr[5];
public:
void CrackexamsFunction();
void Display();
};
void CrackexamsArray::CrackexamsFunction() {
static int i = 0, j = 4;
i++;
j--;
if(j > 0) {
CrackexamsFunction();
}
int tmp = arr[i];
arr[i] = arr[j];
arr[j] = tmp;
i--;
j++;
}
void CrackexamsArray::Display() {
for(int i = 0; i < 5; i++){
cout<< arr[i] << " ";
}
}
int main() {
CrackexamsArray objArr = {{5, 6, 3, 9, 0}};
objArr.CrackexamsFunction();
objArr.Display();
return 0;
}