String in C Language – tccicomputercoaching.com

Page 1

String in C Language – tccicomputercoaching.com String is a collection of more than one character in C Language.

In C string is not allowed as a data type,so, we have to use character array. Declaration string syntax: charstr_name[size]; Example: char s1[20]; Input string function: gets(s1); To output string function: puts(s1); Operations done on the string: 1. Find out the length of string strlen(s1)


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.