All MicroEvals
2.1 For each of the declarations below, do the following. St...
Create MicroEval
Header image for 2.1 For each of the declarations below, do the following. St...

2.1 For each of the declarations below, do the following. St...

Prompt

2.1 For each of the declarations below, do the following. State whether the declaration is also a definition. If the declaration is not a definition, write a definition for the entity being declared. If the declaration is a definition, write a declaration for the entity being declared that is not also a definition. (a) int i = 5; (b) int abs(int x); (c) float sqr(float x) {return x * x;} (d) extern const double pi; (e) char s[] = "Hello"; (f) double x; (g) int (*func)(int, int); (h) template <typename T> T max(T x, T y); (i) template <typename T> bool is_negative(T x) {return x < 0;} (j) auto meaning_of_life = 42;