C – Strings Table of Contents Toggle Strings in CStrings in CCreating a String in CExampleInitializing String Without Specifying SizeExampleLoop Through a StringExampleOutputPrinting a String (Using %s Format Specifier)ExampleOutputConstructing a String using Double QuotesExampleOutputString Input Using scanf()SyntaxExampleOutputExampleOutputString Input with WhitespaceExampleOutputString Input Using gets() and fgets() FunctionsExample: String Input Using gets() FunctionOutputExample: String Input Using fgets() FunctionOutputExample: String Input Using scanf(“%[^n]s”)OutputPrinting String Using puts() and fputs() FunctionsExampleOutput Strings in C ”; Previous Next Strings in C A string in C is a one-dimensional array of char type, with the last character in the array being a “null character” represented by ”