All forms are perfectly valid. To understand this you will have to recall your knowledge of scanf. C-style strings are really arrays, but there are some different functions that are used for strings, like adding to strings, finding the length of strings, and also of checking to see if strings match. I’d use that. Why "&" is not used for strings in scanf() function? String definition. String is an array of characters.In this guide, we learn how to declare strings, how to work with strings in C programming and how to use the pre-defined string handling functions. How to find size of array in C/C++ without using sizeof ? acknowledge that you have read and understood our, GATE CS Original Papers and Official Keys, ISRO CS Original Papers and Official Keys, ISRO CS Syllabus for Scientist/Engineer Exam, How to Append a Character to a String in C. isalpha() and isdigit() functions in C with cstring examples. Stringizing in C involves more than putting double-quote characters around the fragment. Join our newsletter for the latest updates. The #define creates a macro, which is the association of an identifier or parameterized identifier with a token string.After the macro is defined, the compiler can substitute the token string for each occurrence of the identifier in the source file. Create a variable of type string and assign it a value: string greeting = "Hello"; To use strings, you must include an additional header file in the source code, the