What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-10 20:26:23
array can not pass by function in c
#include <stdio.h> struct a_s { int a[20]; }; void foo (struct a_s a) { size_t length = sizeof a.a / sizeof *a.a; for(size_t i = 0; i < length; i++) { printf("%d\n",a.a[i]); } } int main() { struct a_s array... Add solution
Best helpers
Eredani
+5
Dave Holly
+5
Hudhud
+5
Qwerp
+5
Asuka02
+5
Pulverize
+5
NinjaDuckie
+5
John Bottom
+5
RedRiderX
+5