They are int, short, long, float, double, long double and char.Īs you see, there is no built-in string or str (short for string) data type. Knowing the basics of those concepts will then help you better understand how to declare and work with strings in C. This way, you'll understand how these are all connected to one another when it comes to working with strings in C.
In this article, you'll learn how to declare strings in C.īefore doing so, you'll go through a basic overview of what data types, variables, and arrays are in C. Strings in the C programming language work differently than in other modern programming languages. Strings are just one of the many forms in which information is presented and gets processed by computers. Computers store and process all kinds of data.