fork download
  1. #include <stdio.h>
  2.  
  3. #define SIZE(arr) (sizeof (arr) / sizeof (*arr))
  4.  
  5. int main(void)
  6. {
  7. int arr[] = {
  8. 1, 1, 2, 3, 2, 2, 4, 5, 6, 2
  9. };
  10.  
  11. for (int i = 0; i < SIZE(arr); ++i)
  12. {
  13. int j;
  14. for (j = 0; j < SIZE(arr); ++j)
  15. if (arr[i] == arr[j] && i != j)
  16. break;
  17. if (j == SIZE(arr))
  18. printf("%d\n", arr[i]);
  19. }
  20. }
  21.  
Success #stdin #stdout 0.02s 1676KB
stdin
Standard input is empty
stdout
3
4
5
6