0 Reputation Points
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
~862 People Reached
Favorite Forums
Favorite Tags
5 Posted Topics
Re: Scanf and errors
the operator & indicates the direction of the variable. Ancient Dragon is right with the code
Re: int to int array
[code] int num=12345,aux,i; int nums[5]; aux=num; for(i=4;i;i--) { nums[i]=aux%10; aux/=10; } [/code]
[CODE] long factorial(int n) { if((n==0)||(n==1)) return(1); else return(factorial(n-1)); } [/CODE]
I've seen another detail in line 34. Missing '{' after else.
When you create a structure, you just define what type of data is containing. In this case, an integer and a pointer to integer. When you create the pointer to structure (pp), just initialize: pp->p=&(pp->i);
The End.
oieronle