title: Absurd value being displayed for the variable 'largest'
body: <pre><code>#include &lt;stdio.h&gt;
  int main (void)
  {
      int phy,geo,i,highest,largest;
      int arr[2]={phy,geo};
  
      printf("marks for physics : ");
      scanf("%d",&amp;phy);
  
      printf("marks for geo : ");
      scanf("%d",&amp;geo);
  
      largest = arr[0];
  
      for (i = 0; i &lt; 2; i++) {
          if (arr[i] &gt; largest) {
              largest = arr[i];
          }
      }
  
      // Print out the Result
      printf("\nLargest Element : %d", largest);
  
      return(0);
  }
  </code></pre>
  
  <p>I am getting absurd values for the variable 'largest' . It's always the same value no matter what inputs I put in. The purpose of it is to calculate the largest number out of the two inputted numbers. </p>