✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Consider the following C program:
#include <stdio.h>
#include <stdlib.h>
void f(int* q) {
q = malloc(sizeof(int));
*q = 45;
}
int main(void) {
int i = 3;
int* ptr = &i;
f(ptr);
printf("%d %d\n", i, *ptr);
return 0;
}
Tick all the correct statements.Penalty for wrong ticks.