Skip to main content
added 28 characters in body
Source Link
mahesh
  • 110
  • 3

the answer isn't clear better to useis wrong, please change it. see below for the correct file1.c from the really long answer:

#include "file3.h"  /* Declaration made available here */
#include "prog1.h"  /* Function declarations */

/* Variable defined here */
int global_variable = 37;    /* Definition checked against declaration */

int increment(void) { return global_variable++; }

the answer isn't clear better to use file1.c from the really long answer:

#include "file3.h"  /* Declaration made available here */
#include "prog1.h"  /* Function declarations */

/* Variable defined here */
int global_variable = 37;    /* Definition checked against declaration */

int increment(void) { return global_variable++; }

the answer is wrong, please change it. see below for the correct file1.c from the really long answer:

#include "file3.h"  /* Declaration made available here */
#include "prog1.h"  /* Function declarations */

/* Variable defined here */
int global_variable = 37;    /* Definition checked against declaration */

int increment(void) { return global_variable++; }
Source Link
mahesh
  • 110
  • 3

the answer isn't clear better to use file1.c from the really long answer:

#include "file3.h"  /* Declaration made available here */
#include "prog1.h"  /* Function declarations */

/* Variable defined here */
int global_variable = 37;    /* Definition checked against declaration */

int increment(void) { return global_variable++; }