C-style strings

0.0(0)
studied byStudied by 0 people
call kaiCall 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.

Last updated 5:38 AM on 10/16/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

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

Explore top flashcards

Glossary 7
Updated 1004d ago
flashcards Flashcards (20)
english 9 vocab 2
Updated 1116d ago
flashcards Flashcards (25)
MIl lesson 3
Updated 1075d ago
flashcards Flashcards (23)
English Vocab 9
Updated 429d ago
flashcards Flashcards (35)
Glossary 7
Updated 1004d ago
flashcards Flashcards (20)
english 9 vocab 2
Updated 1116d ago
flashcards Flashcards (25)
MIl lesson 3
Updated 1075d ago
flashcards Flashcards (23)
English Vocab 9
Updated 429d ago
flashcards Flashcards (35)