fork download
  1. enum UM_DEVICES
  2. {
  3. CPU, GPU
  4. };
  5.  
  6. #include <stdio.h>
  7.  
  8. int main()
  9. {
  10. int n[2] = {CPU, GPU};
  11. printf("%d %d\n", n[CPU], n[GPU]);
  12. }
  13.  
Success #stdin #stdout 0.01s 1720KB
stdin
Standard input is empty
stdout
0 1