logo

Crowdly

Browser

Add to Chrome

Consider the following C program: #include <stdio.h> #include <stdlib.h> void...

✅ 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.

0%
0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on moodle.epfl.ch?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome