answersLogoWhite

0

What is the syntax for string in c?

User Avatar

Anonymous

12y ago
Updated: 8/20/2019

The C Programming language has no notion of a string.

The C runtime libraries interpret a string as an array of 'char' (sometimes 'unsigned char'), where a byte (char) with numerical value zero (often written as '\0' in C) denotes the end of the string.

Modern variations also support modern forms of strings based on different data types (wchar, etc) in order to support more complex encodings such as Unicode. These, too, are interpretations of combinations of language features, but not a built-in part of the language.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What is string library functions syntax?

String library function is one which is used to perform an operation in C-programming,without which library functions likestrlen(),strcp(),strcmp(),strdup(),strrev(),etc..,.can be performed


How do you construct a syntax- directed translator that verifies that the parenthesis in an input string are properly balance?

How do you construct a syntax- directed translator that verifies that the parenthesis in an input string are properly balance?


What are the syntax of turbo c graphics function?

// my first string #include <iostream> #include <string> using namespace std; int main () { string mystring; mystring = "This is the initial string content"; cout << mystring << endl; mystring = "This is a different string content"; cout << mystring << endl; return 0; } This is the initial string content This is a different string content


What is the syntax of foreach in c?

There is no 'foreach' in C


Is it possible to initialize null character in string?

yes we can initialize null characterfor example syntax :string='\0';


The PHP syntax is similar to which languages?

Its similar to a number of languages such as C, C++, Java and Perl.


What is the syntax of CD?

cmd c:


What is syntax in c?

syntax is the way you write your code in it defines the meaning of keywords & how to write


Syntax of turbo c?

+ += - -= * *= / /= % %= = == != <= >= & && | ^ ~ << <<= >> >>= , [] () are the basic operator in TURBO C


Why you are using strcpy in c plus plus?

In short, you don't. strncpy is deemed unsafe as it has potential to cause buffer overruns. To copy strings safely in C++, use std::string instead. For examples and syntax, see related links, below.


What is the syntax of data conversion in c?

ghanta


What is the syntax of CD command?

cmd c: