If a constant is declared like this
const char *http_range;
Then how can I write the content or the value of it in a text file? Could you please show me with syntax?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First, that is not “a constant”. It’s a pointer to constant character data, i.e. a pointer to a read-only string. You can change the pointer, but you can’t change the data it’s pointing at. For example:
Note that the above is in C, your question is weirdly double-tagged so I picked C.