Returning an array using C
I am relatively new to C and I need some help with methods dealing with arrays. Coming from Java programming, I am used … Read more
I am relatively new to C and I need some help with methods dealing with arrays. Coming from Java programming, I am used … Read more
I have a char in c#: char foo = ‘2’; Now I want to get the 2 into an int. I find that … Read more
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the … Read more
How do I parse a String value to a char type, in Java? I know how to do it to int and double … Read more
The C++11 Standard (ISO/IEC 14882:2011) says in § C.1.1: char* p = “abc”; // valid in C, invalid in C++ For the C++ … Read more
So I want to iterate for each character in a string. So I thought: for (char c : “xyz”) but I get a … Read more
I just want to know if there’s a better solution to parse a number from a character in a string (assuming that we … Read more
When should I use single quotes and double quotes in C or C++ programming? 14 Answers 14
Converting a C++ string to a char array is pretty straightorward using the c_str function of string and then doing strcpy. However, how … Read more
Is there a reason for this? I am asking because if you needed to use lots of empty chars then you get into … Read more