Draw a memory map for the following program at the point in the program execution indicated by the comment /*HERE */. In addition, provide the output generated by the program. #include #define MAXLEN 5 static void task (int *b, int range) { b[range - 1] = 200; range = 0; b = NULL; /* HERE */ int main() { int a[] = {2, 4, 6); int len = 3, i; task (a, len); printf ("len d\n", len); for (i = 0; i < len; i++) printf("%d\n", a[i]); { return 0;

Respuesta :

Answer:

text   data   bss   dec hex   filename

1857   608   8 2473   9a9   memory-layout

Output of the above Code-

len 3

2

4

200

Explanation: