fork download
  1. #include <stdio.h>
  2.  
  3. #define IS_ARRAY(a) ((void*)&(a) == (void*)(a))
  4.  
  5. int main(void) {
  6.  
  7.  
  8. char a[] = {1};
  9. int b;
  10.  
  11. b = (int)&b;
  12.  
  13. printf( "%d\n", IS_ARRAY(a) );
  14. printf( "%d\n", IS_ARRAY(b) );
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0.01s 1720KB
stdin
Standard input is empty
stdout
1
1