C string

C string

C string

En computación las strings de C son secuencia de caracteres guardados como una matriz de caracteres terminados con un carácter nulo ('\0' o ASCII 0). El nombre se refiere al lenguaje de programación C y se usa para distinguir esta forma de representar una cadena a cualquier otra.

La característica de la terminación en nulo fue creada históricamente por problemas de seguridad relacionados con la longitud de la cadena. Si no se añade el carácter nulo al final por alguna razón el área de memoria que sucede a la cadena será tratada también como parte de la secuencia. Esto puede llevar a fallos o fugas de información interna del programa a atacantes o usuarios noveles. Estos errores pueden, y deben, ser prevenidos mediante comprobaciones adecuadas de errores.

En el lenguaje de programación C++ las cadenas de C se usan conjuntamente con otra representación de secuencias de caracteres. La Standard Template Library (STL) de C++ dispone de un contenedor denominado std::string. Hay que tener en cuenta la diferencia que existe entre las cadenas tradicionales de C y las cadenas de C++, mucho más avanzadas.

Véase también

Obtenido de "C string"

Wikimedia foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Mira otros diccionarios:

  • String ficelle — String (lingerie) Un string Le string (en anglais thong ou G string, pour cordon ou ficelle) est un type de sous vêtement (ou de maillot de bain) destiné à cacher le pubis et le sexe mais laissant les fesses entièrement découvertes. Il est… …   Wikipédia en Français

  • String papillon — String (lingerie) Un string Le string (en anglais thong ou G string, pour cordon ou ficelle) est un type de sous vêtement (ou de maillot de bain) destiné à cacher le pubis et le sexe mais laissant les fesses entièrement découvertes. Il est… …   Wikipédia en Français

  • String searching algorithm — String searching algorithms, sometimes called string matching algorithms, are an important class of string algorithms that try to find a place where one or several strings (also called patterns) are found within a larger string or text. Let Σ be… …   Wikipedia

  • String — (str[i^]ng), n. [OE. string, streng, AS. streng; akin to D. streng, G. strang, Icel. strengr, Sw. str[ a]ng, Dan. str[ae]ng; probably from the adj., E. strong (see {Strong}); or perhaps originally meaning, twisted, and akin to E. strangle.] 1. A… …   The Collaborative International Dictionary of English

  • String band — String String (str[i^]ng), n. [OE. string, streng, AS. streng; akin to D. streng, G. strang, Icel. strengr, Sw. str[ a]ng, Dan. str[ae]ng; probably from the adj., E. strong (see {Strong}); or perhaps originally meaning, twisted, and akin to E.… …   The Collaborative International Dictionary of English

  • String beans — String String (str[i^]ng), n. [OE. string, streng, AS. streng; akin to D. streng, G. strang, Icel. strengr, Sw. str[ a]ng, Dan. str[ae]ng; probably from the adj., E. strong (see {Strong}); or perhaps originally meaning, twisted, and akin to E.… …   The Collaborative International Dictionary of English

  • string line — String String (str[i^]ng), n. [OE. string, streng, AS. streng; akin to D. streng, G. strang, Icel. strengr, Sw. str[ a]ng, Dan. str[ae]ng; probably from the adj., E. strong (see {Strong}); or perhaps originally meaning, twisted, and akin to E.… …   The Collaborative International Dictionary of English

  • String skipping — is a guitar playing technique that is used mainly for solos and complex riffs in rock and heavy metal songs. Explanation of technique String skipping is a method of achieving a guitar sound that is different from more traditional solo riff styles …   Wikipedia

  • String duality — is a class of symmetries in physics that link different string theories, theories which assume that the fundamental building blocks of the universe are strings instead of point particles. Before the so called duality revolution there were… …   Wikipedia

  • string — [striŋ] n. [ME streng < OE, akin to Ger strang: see STRONG] 1. a) a thin line of twisted fiber used for tying, pulling, fastening, etc.; slender cord or thick thread b) a narrow strip of leather or cloth for fastening shoes, clothing, etc.;… …   English World dictionary

  • String art — String art, created with thread and paper. A string art representing a projection of the 8 dimen …   Wikipedia

Compartir el artículo y extractos

Link directo
Do a right-click on the link above
and select “Copy Link”