New answers tagged

0

GOT THE ANSWER - When you pass array by an function it is not the copy of array that is passing through the function indeed it is the original array . So the value of array also changes . Thanks for not answering.


1

You are already half-way there. Your for loop does something for each iteration. Now, you want to do something inside that loop for each iteration. The answer is another for loop--a concept called "nested loops." The basic structure would be: for(int i = 0; i < n; i++) { //code to execute before the nested loop, if any //the nested loop ...


1

Of course it's moving past the while loop. It's just not doing anything that you see before it terminates. Try inputting a 3 digit number and see what it does. The actual problem is here: if (digits == 13 || digits == 15 || digits == 16) { return digits; } A return statement in main will immediately terminate the program. If it has a value or variable ...


0

Mind the case sensitive it must be the same.


1

You gotta change your directory to where cash.c is located. cd pset1


Top 50 recent answers are included