Only advice for HomeWork:You should learn to use the debugger as soon as possible. Rather than guessing what your code is doing, It is time to see your code executing and ensuring that it does what you expect.The debugger allow you to follow the execution line by line, inspect variables and you will see that there is a point where it stop doing what you expect.Run your code step by step, inspect variables, be very attentive to what your program is doing.
![Comparar Arrays C Comparar Arrays C](/uploads/1/2/4/0/124097390/143560113.png)
C Programming Arrays In this article, you will learn to work with arrays. You will learn to declare, initialize and, access array elements with the help of examples. When two pointers are subtracted, both must point to elements of the same array object or just one past the last element of the array object (C Standard, 6.5.6.
You should find quickly what is wrong. When answering a question please:. Read the question carefully. Understand that English isn't everyone's first language so be lenient of badspelling and grammar. If a question is poorly phrased then either ask for clarification, ignore it, oredit the question and fix the problem. Insults are not welcome. Don't tell someone to read the manual.
Chances are they have and don't get it.Provide an answer or move on to the next question.Let's work to help developers, not make them feel stupid.
Output First Run:Enter elements:Enter arr0: 10Enter arr1: 20Enter arr2: 30Enter arr3: 40Enter arr4: 50Enter elements:Enter arr0: 10Enter arr1: 20Enter arr2: 30Enter arr3: 40Enter arr4: 50Arrays have same elements.Elements are:arr0: 10arr1: 20arr2: 30arr3: 40arr4: 50Second Run:Enter elements:Enter arr0: 10Enter arr1: 20Enter arr2: 30Enter arr3: 40Enter arr4: 50Enter elements:Enter arr0: 10Enter arr1: 20Enter arr2: 40Enter arr3: 40Enter arr4: 40Arrays have different elements.