What is null character in c




















Collectives on Stack Overflow. Learn more. Asked 9 years, 5 months ago. Active 6 years, 2 months ago. Viewed 24k times. Improve this question. Peter Mortensen That might give you insight into what is happening. Add a comment. Active Oldest Votes. Improve this answer.

Also, in the case of string , you are indexing out of the boundaries of the string 's memory. You are lucky your code doesn't crash. Oliver Charlesworth Oliver Charlesworth k 30 30 gold badges silver badges bronze badges. RedX RedX 14k 1 1 gold badge 49 49 silver badges 71 71 bronze badges.

Select personalised content. Create a personalised content profile. Measure ad performance. Select basic ads. Create a personalised ads profile. Select personalised ads. Apply market research to generate audience insights. Measure content performance. Develop and improve products. List of Partners vendors. Share Flipboard Email. By David Bolton David Bolton. Learn about our Editorial Process. Change Language. Related Articles. Table of Contents.

Improve Article. Save Article. Like Article. In all cases, it is an integer constant with the value 0, it is just described in different ways. If any pointer is being compared to 0 , then this is a check to see if the pointer is a null pointer. This 0 is then referred to as a null pointer constant.

It is a character with all bits set to zero. This has nothing to do with pointers.



0コメント

  • 1000 / 1000