I get it. Thanks alot guys :D
Type: Posts; User: houler
I get it. Thanks alot guys :D
Can you explain this part to me? I thought count was only used as a counter? why is it in between the braces?
scanf("%f", &expenses[count]);
i
Here's a code snippet i got from a book:
/* Declare an array to hold expenses, and a counter variable */
float expenses[13];
int count;
Heh. I got it thanks.
I'm inputting 1,2, 3, 4, 5 to see if they actually get stored into the elements in order, and to check if 1 matches element 1, 2 matches with element 2, and so forth.
I wrote this to get the feel of how values are stored in the array.
when I run the program i get this:
1 is 1075160376
2 is 1
3 is 2
4 is 3
5 is 4
nevermind.
/* Demonstrates a recursive function */
#include <stdio.h>
int recurse(int a);
int main(void)
{
int num;
I get it now, thank you for your quick replies. :cool:
Hi, this is my first post here.
I'm having trouble understanding the logic of recursive functions. I'm doing a self study on C programming for linux and I'm having problems understanding how...