About 249,000 results
Open links in new tab
  1. c++ - What is a char*? - Stack Overflow

    Jun 14, 2022 · char* represents the address of the beginning of the contiguous block of memory of char's. You need it as you are not using a single char variable you are addressing a whole …

  2. What is the difference between char array and char pointer in C?

    Sep 13, 2019 · char p[3] = "hello"? should be char p[6] = "hello" remember there is a '\0' char in the end of a "string" in C. anyway, array in C is just a pointer to the first object of an adjust …

  3. Difference between char* and char** (in C) - Stack Overflow

    Dec 15, 2018 · char * is a pointer to a memory location. for char * str="123456"; this is the first character of a string. The "" are just a convenient way of entering an array of character values. …

  4. What is char ** in C? - Stack Overflow

    Nov 13, 2012 · Technically, the char* is not an array, but a pointer to a char. Similarly, char** is a pointer to a char*. Making it a pointer to a pointer to a char. C and C++ both define arrays …

  5. Difference between char and char* in c - CS50 Stack Exchange

    Feb 24, 2015 · The fundamental difference is that in one char* you are assigning it to a pointer, which is a variable. In char[] you are assigning it to an array which is not a variable. char[] is a …

  6. British usage of “cha”, “char” or “chai” to mean “tea”

    "Char" is an old British English (in fact I would say English English) slang term for "tea". I don't think it is heard particularly often, but you might see or hear the phrase "cup of char and a …

  7. Pointers: What is the difference between char * <name> = .... and …

    In this case I do not know what the confusion is, both are pointers to a char, you just have to look at the right part of the statement, maybe you have some doubt with the dereference operator, …

  8. How to pronounce the programmer's abbreviation "char"

    Mar 5, 2012 · The abbreviated form char, short for character, can be pronounced in several different ways in American English: here's how you represent the various pronunciations in …

  9. c++ - char and char* (pointer) - Stack Overflow

    Oct 14, 2012 · For taking address of char q;.Of course you can take address of q: &q, and it type is char* p.But &q is different that p, and this q=*p just copies first character pointed by p to q, it …

  10. c++ - Difference between char* and char[] - Stack Overflow

    Sep 27, 2011 · const char *str = "Test"; The relevant section of the standard is Appendix C section 1.1: Change: String literals made const. The type of a string literal is changed from …