#include <stdio.h>
int main() {
  int studentIds[] = {8012, 12341, 12412, 13343, 13423}; // create C-Array
  for(int i=0; i<5; i++) printf("studentIds[%d]: %d\n", i, studentIds[i]);   // output array with C-printf

   __asm {
      mov ebx, 5   ;// set loop counter
     LoopOverIds:
      mov eax, [studentIds+4*ebx-4]     ;// studentIds[4], studentIds[3], ..., studentIds[0]
      inc eax
      mov [studentIds+4*ebx-4], eax    
      dec ebx;
      jnz LoopOverIds
   }

  for(int i=0; i<5; i++) printf("studentIds[%d]: %d\n", i, studentIds[i]); // output array with C-printf
  return 0;
}
