ECE 15 Lecture Notes - Lecture 6: Delimiter, Scanf Format String, Null Character
Document Summary
However, this does not work for strings, because you must copy each element of the array. Thus, you must copy in terms of a loop: copy. c, word2[i] = /0" must be implemented as a string delimiter for the printf function. 1. the first for loop will increment i" until it reaches a null character (/0). For example, with the word yes it will increment. This is what allows j" to represent the last valid cell for the string array: ex: print each number in an array of numbers once. No two numbers can be printed: unique. c, the thing is, we cannot have an infinite array, so it keeps a list of seen numbers and compare the new number to all that were already seen. If this number was not seen before, it will be added in another array of elements of the unique numbers (previus[j]).