Unformatted text preview:

Here are the notes for the topic Strings and String Manipulation Working with Strings in Markdown format Strings and String Manipulation Working with Strings In C language strings are defined as an array of characters Strings are terminated by a null character 0 Some basic operations on strings are Length of string Copying of strings Concatenation of strings Comparing of strings Length of String The length of a string can be calculated using the built in function strlen Example int strLength strlen string Concatenation of string To concatenate two strings the built in function strcat can be used Example strcat destination source Comparing of Strings To compare two strings the built in function strcmp can be used Example int comparison strcmp string1 string2 if comparison 0 string1 is less than string2 if comparison 0 string1 is greater than string2 if comparison 0 string1 is equal to string2 That s it for the notes on Strings and String Manipulation in C language I hope it helped


View Full Document

UA 2870 348 - Structure of C Programming

Download Structure of C Programming
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Structure of C Programming and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Structure of C Programming and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?