Strings: 02:15:00 A string is a sequence of characters terminated by a null character ‘\0’. The null character indicates the end of the string. Each cha...Read More
Defining String Variables: 02:09:00 Just like of integers or any other data type, the string variables which are basically array of characters can be defined using the f...Read More
Initializing Strings: 02:02:00 In the previous chapter, we discussed that how numeric arrays can be initialized. Similarly, strings which are basically character ar...Read More
Reading Strings from Terminal Using scanf ( ): 01:57:00 The familiar input function scanf ( ) can be used with %s format specification to read in a string of characters. For example: ...Read More
Reading Strings from Terminal: 01:54:00 Using getchar function: We have discussed in our previous chapter as to how to read a single character from the terminal, using ...Read More
Writing Strings to Screen Using printf( ): 01:44:00 We have used extensively the printf ( ) function with %s format to print strings to the screen. The format %s can be used to display a...Read More
Writing Strings to Screen: 01:17:00 Using putchar ( ); Like getchar ( ), C supports another character handling function putchar ( ) to output the values of character v...Read More
Standard Library String Handling Functions: 00:58:00 There are a large number of library functions available in C that allows to operate strings. Using these operations, the strings can...Read More