#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  eax, [studentIds+4]  // move 12341 to eax
    mov  ecx, [studentIds+12] // move 13343 to ecx
    mov  [studentIds+4], ecx  // move 13343 to studentIds[1]
    mov  [studentIds+12], eax  // move 12341 to studentIds[3]
  } 

  for(int i=0; i<5; i++) printf("studentIds[%d]: %d\n", i, studentIds[i]); // output array with C-printf
  return 0;
}