answersLogoWhite

0

What is type string in C?

User Avatar

Anonymous

13y ago
Updated: 8/20/2019

Nothing, zero-terminated char-arrays are used instead of strings.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What is return type of string in c?

In C programming, a string doesn't have a specific return type as it's essentially an array of characters. So, if a function is returning a string, it should be declared to return a pointer to a char (char*), since a string in C is represented as an array of characters terminated by a null character ('\0').


Why to use String in c?

C doesn't have String data-type, so don't use it.


What is a c-string?

It Is the newest type of thong!


What is the difference between a C plus plus string and a C-style string?

A std::string is an object that encapsulates an array of type char whereas a C-style string is a primitive array with no members. A std::string is guaranteed to be null-terminated but a C-style string is not.


What is the c string in voilin?

There is no C string on a violin- the strings are G, D, A and E. Perhaps you are thinking of a viola, which has a low C string, alongwith a G, D and an A string.


C plus plus library functions for string operations?

You can use "string" class in C++ for string operations or you may use c style string functions as well. #include <string> String class in C++ provides all basic function to operate on strings. you may details descriptin at http://www.cplusplus.com/reference/string/string/


Is there a c-string thong for men?

yes, c-string is available for men..


What are strings?

Some stringed instruments contain a C-string, producing sound from the string creates the note C, so it is called C-string.


What are Strings in C programming?

Arrays of chars are strings. there is a built in librray, that handles string string.h but the data-type is held as arrays of chars. char[10] c="string"; translate to ['s','t','r','i','n','g',\0] Arrays of chars are strings. there is a built in librray, that handles string string.h but the data-type is held as arrays of chars. char[10] c="string"; translate to ['s','t','r','i','n','g',\0]


Is string arr a non primitive data type?

Depends on the context of the question you were asking from, there are 2 distinct answers: Yes and NO. In the narrowest definition, any array is NOT a primitive data type in C#. Hence a string array is NOT a primitive data type in that context. A string itself, however, is a primitive data type. Some developers would like to extend the definition of "primitives" into the arrays, collections, and Enumeration. Thus, in this context, an array of string IS a primitive data type.


What is the difference between Strings and Arrays in c?

There is no difference. A string is just an array of type char. The only real difference is that we do not need to keep track of the length of a string because strings are null-terminated in C. If a string does not have a null-terminator, then it is just an ordinary array of character values.


Can you write a C program to check whether a string is an IP address or not?

Use the Exception class and type converters.