When to use & in a function call in C
So I’m working on an assignment in C-Language together with ChatGPT and it threw a code snippet at me, that is a bit confusing.
initialization of a pointer to a result of a function in C
#include <stdlib.h> #include <stdio.h> #include <string.h> int *(*FF(int T[],int k))[2]; int main(){ int TAB[4][6]; int *(*(*a_1)(int [], int))[2]=FF+1; int *(*a_2)[2]=FF(TAB[1],6)+2; int **a_3=*FF(*TAB,0); int *a_4=**FF(*TAB,0); return 0; } since FF returns a pointer to an array of two pointers to integers, dereferencing the result here *FF(*TAB,0) should be the first pointer in the array of two […]