answersLogoWhite

0


Best Answer

The value zero is a perfectly valid numeric array element in its own right. If we used the value zero to mark the end of a numeric array in the same way we use a null-terminator to mark the end of a string (a character array), we'd have no way of representing the value zero within the array itself. Thus when working with numeric arrays, we must keep track of the array length independently of the array.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why numeric arrays do not end with a '0' in C programming language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Is it possible to use arrays when using the java programming language?

It is possible to use arrays when employing java programming language. There are many different series of programming choice that can be employed with various end results.


What are the disadvantages of arrays in computer language?

Depending upon your programming language, arrays are the source of the most malignant of all defects: the buffer overrun. By declaring that a given span of memory will contain zero or more instances of a variable, if in some iterative loop that boundary is moved beyond the end, garbage data will then be read, which can at best cause the application to crash, or at worst cause a very difficult to diagnose runtime error. Some programming languages have buffer integrity checks built into either the runtime or the compiletime operations. Other languages may use standard templates to abstract away the dangers of arrays with boundary-safe read and write operations.


What programming language does orkut use for their site?

python, as most of the codes in the site end with .py


What symbol is at the beginning and end of a string?

Depends on the programming language you are working with ..... Most use the symbol " or '


How to check whether a character is numeric in an alphanumeric field in easytrieve.?

IF WS-AGE NUMERIC DISPLAY "NUMERIC" ELSE DISPLAY "NOT NUMERIC' END-IF


What is the programming language related with email?

There is no specific language suited to e-mail. Virtually any language can be used to create the front-end of the client-server while a DBMS would be required to handle the back-end.


What is the difference between a programming language and a application software?

You use a programming language in order to create applications. The programming language is typically implemented within an integrated development environment (IDE), which is itself an application that was written in a previous incarnation of the same language or in another language altogether.


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'


How are string stored in c language?

Strings represented by the language character set (e.g., ASCII) are stored as null-terminated arrays of type char. Wide-character strings are stored as null-terminated arrays of type wchar_t. Other types are also available, such as char16 and char32 (for UTF16 and UTF32 encodings, respectively).


Source code of xml?

there is no source code, xml is not a programming language, its a markup language for which you create your own tags, the basic xml syntax is <xml> to start an xml file, and </xml> to end the xml file.


How do you create main in php?

PHP is web based programming language and there in no main() function defined. Considering, PHP as HTML embedded language and server side scripting language,It get interpreted by web server .Example: Hello - End of PHP block


List of back end programming languages?

HTML,CSS, Javascripts are few front end programming languages.