Back to Browse

What are the input and output for strings in C language ? #cprogramming #banglatutorial

211 views
Aug 31, 2024
16:00

An array of characters (or) collection of characters is called a string. Strings: Strings are used for storing text/characters. For example, "Hello World" is a string of characters. Unlike many other programming languages, C does not have a String type to easily create string variables. Instead, you must use the char type and create an array of characters to make a string in C: char greetings[] = "Hello World!"; Note that you have to use double quotes (""). To output the string, you can use the printf() function together with the format specifier %s to tell C that we are now working with strings: Example char greetings[] = "Hello World!"; printf("%s", greetings); #cprogramming #cprogrammingtutorial #cprogramminglanguage #banglatutorial #bangla #bangladesh #computerlanguage #education #universityofscholars #ius #trustcoding #strings #videotutorial

Download

0 formats

No download links available.

What are the input and output for strings in C language ? #cprogramming #banglatutorial | NatokHD