All Questions
3 questions
0
votes
3
answers
34
views
Error retrieving return values from a function
I am currently studying coding in C language and I have doubts about the return of functions, what I am trying to do is the following:
Call the number () function and pass 3 values of the integer ...
0
votes
1
answer
582
views
Difference between Pass by Value and Pass by Reference (a practical example)
at the end of Doug's video on arrays he explains how variables get passed in function calls in comparison to how arrays work.
void set_array(int array[4]);
void set_int(int x);
int main (void)
{
...
3
votes
1
answer
6k
views
Why can we pass a struct variable to a function by value but not an array?
As taught we can pass a whole "struct" by value to a function but we can't pass an array by value. Why?
And, what if the passed struct contains an array as a member? Would it get passed completely (...