84.1k views
2 votes
If the starting address of a string is passed into a pointer parameter, it can be assumed that all the characters, from that address up to the byte that holds the null terminator, are part of the string.

A. True
B. False

User MobX
by
8.4k points

1 Answer

5 votes

Final answer:

If the starting address of a string is passed into a pointer parameter, it can be assumed that all the characters, from that address up to the byte that holds the null terminator, are part of the string.

Step-by-step explanation:

True, if the starting address of a string is passed into a pointer parameter, it can be assumed that all the characters, from that address up to the byte that holds the null terminator, are part of the string. This assumption is based on the convention used in C programming language, where strings are represented as arrays of characters terminated by a null character.

User Harshil
by
8.1k points