How to Store 2 analogRead values and read using EEPROM for Arduino Uno?
See Reading and Writing Data Structures to EEPROM.

EEPROM.write(addr,a);


You can't directly write arrays. See the link for how to do it.

Example code:

#include &lt;EEPROM.h&gt;
#include &lt;EEPROMAnything.h&gt;

int array[2];
int addr=0;

void setup()
{  
}

void loop()
{
  array[0] = analogRead(0)/4;
  array[1] = analogRead(1)/4; 
  EEPROM_writeAnything(addr, array);
  addr += sizeof (array);

  if(addr &gt;= 512)
    exit (1);

  delay(100);
}


Your posted code is a bit flawed anyway. You know EEPROM has a limited life? If you have a sketch that writes to EEPROM indefinitely you will wear it out.

My code above stops once it reaches address 512.