home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_05 / 297.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-12  |  598KB  |  2550x3300
Labels: book | reckoner
OCR: The Common String Library Functions 297 5.4 string to the end of the first oue Object: ive TO demonstrate error in memory locat ion when using the string library funct ions Incl .ude Files #inc lude <stdio h> #incl lude <stri ing h> int main( void char stringl know an old lady who swall owed char string2 'spi ider that wiggled and jiggled and tickled inside her"; printf( stringl printf( string2 Note 1 printf( "\nstr ingl begins and ends at %p \n" stri ingi stringi strlen( stringl printf( "string2 begins p and ends sp n \r" .r ing2 stri ing2 strlen stri ing2 Note strcat stri ingl, horse She dead of course ERROR pri inti stri ingi pr intf( string2 pri intf( in" return There is a single function main() Two char variables are defined and ini- tialized The executable code consists of calls to f ...