Published on : 2nd Oct 2021

String in C programming
Definition :
A string is a sequence of characters. A string is a one dimensional array of characters terminated by null character (\0). A string is represented in double quote.
Example : "Hello, World!"
Visualization of string :

Source Code :
#include <stdio.h> int main(int argc, char** argv) { char arr[6] = "Hello"; printf("%s", arr); return 0; }
Output :
Hello