fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. char arr[8] = {1,2,3,4,5,6,7,8};
  6. int off = 0;
  7. int end = sizeof(arr);
  8. for (; off < end; off+=2)
  9. printf("%hu ", *(unsigned short *)(arr + off));
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 4352KB
stdin
Standard input is empty
stdout
513 1027 1541 2055