About 77 results
Open links in new tab
  1. c - What is the difference between NULL, '\0' and 0? - Stack Overflow

    This 0 is then referred to as a null pointer constant. The C standard defines that 0 cast to the type void * is both a null pointer and a null pointer constant. Additionally, to help readability, the macro NULL is …

  2. Para que serve o \0 | C: avançando na linguagem | Solucionado - Alura

    01/05/2018 Boa noite Ariel, O caractere "\0" (null) serve para identificar o fim de uma string, sem o "\0" o C não consegue definir o tamanho de uma string quando estamos fazendo um loop em uma string …

  3. c++ - What does '\0' mean? - Stack Overflow

    11 \0 is the NULL character, you can find it in your ASCII table, it has the value 0. It is used to determinate the end of C-style strings. However, C++ class std::string stores its size as an integer, …

  4. what is "{0}" in C? - Stack Overflow

    Aug 15, 2011 · However, the C standard states that if you don't provide enough elements in your initializer list, it will default-initialize the rest of them. So in your code, all elements of buf will end up …

  5. String termination - char c=0 vs char c='\0' - Stack Overflow

    Jun 6, 2013 · When terminating a string, it seems to me that logically char c=0 is equivalent to char c='\0', since the "null" (ASCII 0) byte is 0, but usually people tend to do '\0' instead.

  6. c++ - What's the real use of using n [c-'0']? - Stack Overflow

    Sep 15, 2011 · In C, '0' is an integer whose value represents the digit zero as a character, not the value 0, which would be the null character. Other answers have omitted this, but it's important to note that …

  7. objective c - What does \0 stand for? - Stack Overflow

    Jan 31, 2013 · Possible Duplicate: What does the \\0 symbol mean in a C string? I am new at iPhone Development. I want to know, what does '\\0' means in C, and what is the equivalent for that in …

  8. What is the difference between (char)0 and '\\0'? in C

    Sep 28, 2011 · What is the difference between using (char)0 and '\\0' to denote the terminating null character in a character array?

  9. What does the symbol \\0 mean in a string-literal? - Stack Overflow

    Nov 10, 2018 · 1 In C language it is generally used to mark an end of a string. example string a="Arsenic"; every character stored in an array ... end of the array contains ''\0' to stop the array …

  10. boolean - What is !0 in C? - Stack Overflow

    Sep 8, 2010 · I know that in C, for if statements and comparisons FALSE = 0 and anything else equals true. Hence, int j = 40 int k = !j k == 0 // this is true My question handles the opposite. What does !0 be...