Q:

Explain whether each of the following is a declaration or a definition

0

Explain whether each of the following is a declaration or a definition:

(a) extern int ix = 1024;
(b) int iy;
(c) extern int iz;

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

extern int ix = 1024;  // Definition
int iy;  // Definition
extern int iz;  // Declaration
int main() {
  //extern int ix2 = 1024;  // Error
  int iy2;  // Definition
  extern int iz2;  // Declaration

  return 0;
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now