A string consists of characters, and multiple characters end in 0 to form a string. The string needs to give the position of the first character.
A numeric string can be understood as a Adu string with an int value. At this point, the string is called a numeric string.
Second, the use is different:
Digital data can be added, subtracted, multiplied and divided.
Chords are not. Chords can be connected by chords.
Third, the role is different:
Numbers composed of numeric characters cannot be directly used for calculation, and real values need to be taken out. For example, the string "123" is just a number. To get 123 that can be used for calculation, we can: a = ('1'-'0') *100+('2) get, and output and display the numerical value, and convert it into a number composed of characters: printf("%d\n ").
A series of data types that directly store data in corresponding memory blocks, which can be divided into floating-point type and integer type. Among them, floating-point type is mainly used to record floating-point numbers, which generally has certain errors and complicated recording methods, and should be discussed separately according to specific languages and data types.
Extended data:
A string is generally recorded as s = "a 1a2 an" (n > =0). It is a data type that represents text in programming language. In programming, a string is a continuous sequence of symbols or values, such as a string of symbols (a string of characters) or a string of binary numbers (a string of binary numbers).
Usually, the whole string is taken as the operation object, such as finding a substring in the string, finding a substring, inserting a substring at a certain position in the string, and deleting a substring. The necessary and sufficient conditions for two strings to be equal are: the length is equal, and the characters in each corresponding position are equal. Let p and q be two strings, and the operation of finding the position where q first appears in p is called pattern matching. The two most basic storage methods of strings are sequential storage and linked storage.
Baidu Encyclopedia-String