C programming string

11

description

C programming string

Transcript of C programming string

Page 1: C  programming string
Page 2: C  programming string

NOTES

Page 3: C  programming string

NOTES

Page 4: C  programming string

NOTES

Page 5: C  programming string

NOTES

Page 6: C  programming string

NOTES

Page 7: C  programming string

NOTES

Page 8: C  programming string

NOTES

Page 9: C  programming string

NOTES

Page 10: C  programming string

Single character functiongetchar() which reads a character from the keyboard following statement reads a character using getchar () and stores it in variable ch.

Ch= getchar()getchar () waits for the character input a until a character is typed at the keyboard.Putchar() putchar() displays the given character on the screen at the current cursor position . following statement displays character (‘b’) on the screen. Put (‘b’)

NOTES

Page 11: C  programming string

toupper() = convert lowercase character to uppercase.tolower() = convert uppercase character to lowercase.isupper() = To check either the string is in uppercase or not.islower() = To check either the string is in lowercase or not.

•toupper(),tolower(),isupper(),islower() have defined within <ctype.h>

NOTES