Hi, does anyone know how to pass variables between functions in C so one function can recognise the variable passed from another function.
one function knowing from another function like
length = 0;
while (length <= 5)
{
length ++;
}
return(length);
getting the value of the length from the top to count in the bottom
for (counter = 0; counter <= length;counter += 2)
{
printf("hey");
}
these are two different functions and there is also void main
help would be appreciated