I am not really sure how or why this works:
#include <stdio.h>
#include<stdlib.h>
#include <limits.h>
#include <iostream>
using namespace std;
int main() {
 int min = INT_MAX, min_index;
 cout << min <<"\n";
 cout << INT_MAX << "\n";
 cout << min_index <<"\n";
 system("pause");
 return 0;
}
There is actual output for min, INT_MAX, and min_index
I know that INT_MAX is part of the limits.h and so min and INT_MAX are the same but min_index isn't given a value why does it display a value.
 
     
     
     
     
    