- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
7 Posted Topics
May be you can atleast start off with something and post your first hurdle here. This way we will be able to help you more precisely.
I am sorry but we are not going to spoonfeed you for your assignments. Try out something and then ask speciific questions.
According to me you should go for Linked Lists as suggested by Ancient Dragon. Its a good solution.
I think you need to show a larger peice of your code and explain your problem a bit more.
Try this #include <stdio.h> #include <stdlib.h> int main() { int i,n,a=0,b=0,sum=0; printf("enter the limit of amstrong number: "); scanf("%d",&n); // CHANGE :: scanf expects an address as second argument for(i=1;i<=n;i++) { sum=0; // CHANGE :: reinitialize sum to zero everytime a=i; while(a>0) { b=a%10; // CHANGE :: Perform operations on …
Seems like the problem is due to insufficient size of the array s. Try changing you array size to s[10][12]
I completely agree with deceptikon. For example, in case of Linux you have wait() and waitpid() functions to get the exit status of child process. More on this [here](http://linux.die.net/man/3/wait)
The End.
poornamoksha