Ask Your Question
4

Is the initial array of getline filled with a null character, '\0'?

asked 2023-06-16 04:15:23 +0000

ladyg gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-06-16 04:44:02 +0000

lalupa gravatar image

No, the initial array of getline is not filled with a null character. The array is dynamically allocated and has an undefined value. It is the responsibility of the user to ensure that the array is properly initialized before using it.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-16 04:15:23 +0000

Seen: 7 times

Last updated: Jun 16 '23