ECE 15 Lecture Notes - Lecture 6: Delimiter, Scanf Format String, Null Character

56 views3 pages

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]).

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents