fork(2) download
  1. #include <stdio.h>
  2. int main() {
  3.  
  4. int a[]={1,2,3,4,5};
  5. if(&a[0] == a)
  6. printf("Address of first element of an array is same as the value of array identifier\n");
  7. if(&a == a)
  8. printf("How can a value and address of an identifier be same?!");
  9.  
  10. return 0;
  11. }
Success #stdin #stdout 0.02s 1720KB
stdin
Standard input is empty
stdout
Address of first element of an array is same as the value of array identifier
How can a value and address of an identifier be same?!