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
Closed. This question needs to be more focused. It is not currently accepting answers. Closed 4 years ago. Locked. This question and its … Read more
By considering that the memory is divided into four segments: data, heap, stack, and code, where do global variables, static variables, constant data … Read more
OK, so I don’t sound like an idiot I’m going to state the problem/requirements more explicitly: Needle (pattern) and haystack (text to search) … Read more
Is there a clean, preferably standard method of trimming leading and trailing whitespace from a string in C? I’d roll my own, but … Read more
What does the , operator do in C? 8 Answers 8
I’m after some simple examples and best practices of how to use regular expressions in ANSI C. man regex.h does not provide that … Read more
I just saw a picture today and think I’d appreciate explanations. So here is the picture: I found this confusing and wondered if … Read more
I have a FILE *, returned by a call to fopen(). I need to get a file descriptor from it, to make calls … Read more
Consider the following switch statement: switch( value ) { case 1: return 1; default: value++; // fall-through case 2: return value * 2; … Read more