C-style strings

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/8

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

9 Terms

1
New cards

strings

character arrays that must include a null character ‘/0’

2
New cards

strings formatted IO

%s

doesn’t need a &

3
New cards

for loop of string

for(int index = 0; c_style_string[index] != ‘\0’; index++){ }

4
New cards

scanf with strings

stops at the first blank space

null is automatically stored

5
New cards

fgets

stopes at the end line character

null automatically stored

6
New cards

fgets structure

fgets(fgets_string, SIZE, stdin);

works like scanf

7
New cards

conversion specifier

placeholder values in the format string

8
New cards

format string

text between double quotes

9
New cards

escaped characters

nonprinting characters or characters with special meaning