Passing arrays as parameters
Pass address of first array element```
#include <stdio.h>
void foo(int*a)
{
printf("%p\n", a);
}
int main()
{
int a[10];
printf("%p\n", a);
foo(a);
}
If you want to change selection, open document below and click on "Move attachment"
Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details