answersLogoWhite

0

Constant.

User Avatar

Wiki User

16y 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').


Program to Counting and displaying occurrence of character in a string?

Since this question appears in both the C and Java sections, I'll give you the (slightly different) answers for each.In Javafinal String str; // the string we want to searchfinal char c; // the character we want to search forint num = 0; // the number of times c is in strfor(char ch: str.toCharArray()) {if( ch == c ) {++num;}}// num now equals number of times c is in strIn Cconst char* str; // the string we want to searchconst char c; // the character we want to search forint num = 0; // the number of times c is in str// loop varsint i;const int end = strlen(str);for(i = 0; i < end; ++i) {if( str[i] == c ) {++num;}}// num now equals the number of times c is in str


Why do you need a terminating null character at the end of the every string in C programming?

Because the null character represents the end of the string.


Why and operator can not be used in string of c program?

Any character can be used in string, except for \\0. char example [] = "A&amp;B|C";


How do you declare a pointer to a character string in c?

char *ptr;


How many bytes does a string occupy in c?

Depends on several factors:number of bytes per character: 1 to 4 depending on which alphabet and character encoding you use. 1 byte per character for US-ASCII and the most common Western Europe encodings.length of the string: bytes per character times number of charactersprogramming language: in C, the string takes up no more space than the characters do. In many other languages, there is an additional fixed overhead for the string object itself. For example in Java, a string takes 2-4 bytes plus the space taken by the characters.


What symbol or character determines end of string?

In C programming language, a string is an array of characters which is always terminated by a NULL character: '\0'


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.


Special character in C language?

special character in c language are as follows~ ' ! @ # % ^ &amp; * () _ - + = | \ {} [] : ; " &lt;&gt; , . ? /


How do you enter a character on a specific place in string in c?

str[3]= 'A';


What is the difference between 'a' and a in C?

a -- identifier 'a' -- character-literal "a" -- string-literal


The special character string that is used to print the diameter sign is?

%%c %%D %%DIA c%%