logo

Crowdly

What will be printed? #include <stdio.h> void foo(int arr[], int size) {...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

What will be printed?

#include <stdio.h>

void foo(int arr[], int size) {

    printf("sizeof(arr) = %zu\n", sizeof(arr));

}

int main() {

    int arr[10] = {0};

    foo(arr, sizeof(arr)/sizeof(arr[0]));

    return 0;

}

More questions like this

Want instant access to all verified answers on distedu.ukma.edu.ua?

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