c program to check whether file is empty or not

C program to check whether file is empty or not 


  fp =  fopen ("file1.txt", "a+");
   if (NULL != fp) {
    fseek (fp, 0, SEEK_END);
    size = ftell(fp);

    if (0 == size) {
        printf("file is empty\n");
    }
  }