Download presentation
Presentation is loading. Please wait.
Published byΚυρία Γιάγκος Modified over 6 years ago
1
C Characters and Strings – Review Lab assignments
Lab guide #7 C Characters and Strings – Review Lab assignments
2
Key points Fundamental of Stings and Character.
Character-handling library (ctype). String-conversion functions (stdlib). Standard Input/Output library functions(stdio). String-processing functions of the String-Handling Library (string). Memory functions of the the String-Handling Library.
3
Fundamentals of Strings and Characters
Building blocks of programs Every program is a sequence of meaningfully grouped characters Character constant An int value represented as a character in single quotes 'z' represents the integer value of z Strings Strings are arrays of characters String is a pointer to first character Value of string is the address of first character String definitions char color[] = "blue"; char *colorPtr = "blue"; Inputting strings scanf("%s", word); Remember that strings represented as character arrays end with '\0‘
4
Character Handling Library
#include <ctype.h>
5
String-Conversion Functions
#include <stdlib.h>
6
Standard Input/Output Library Functions
#include <stdio.h>
7
String Manipulation Functions of the String Handling Library
#include <string.h>
8
Comparison Functions of the String-Handling Library
9
Search functions of the String-Handling Library
10
Memory Functions of the String-Handling Library
#include <stdlib.h>
11
Other functions of the string-handling library
12
Lab assignments Problems
Fig. 8.4 Fig 8.13 Fig 8.16 Fig 8.18 Fig 8.23 Fig 8.32 Finish coding the programs (not copy paste) and ask the TAs for checking
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.