Search code examples
Scanning and Printing strings using an array of strings...


arrayscpointersscanfc-strings

Read More
Runtime error: `load of null pointer of type 'char'` when indexing an array...


cc-stringstrimoperator-precedencepointer-to-pointer

Read More
Malloc is not allocating enough memory, despite being hardcoded to allocate exactly two characters...


csegmentation-faultheap-memorypass-by-referencec-strings

Read More
Fibonacci for letters...


ccharc-stringsfibonaccifunction-definition

Read More
"initialization of ‘char’ from ‘char *’ makes integer from pointer without a cast" when in...


cc-strings

Read More
Reasonable to use a compound literal array as a temporary string buffer?...


cc-stringsc99

Read More
Why do I get a segmentation fault when writing to a "char *s" initialized with a string li...


csegmentation-faultc-strings

Read More
Why does p+1 not produce the same result as p++ in this scenario?...


cfor-loopc-strings

Read More
Converting String to Cstring in C++...


c++stringc-strings

Read More
Append, C-strings and struct member functions...


arraysc-stringspointer-to-member

Read More
Realloc gives error: _CrtIsValidHeapPointer(block)...


cpass-by-referencedynamic-memory-allocationc-stringsrealloc

Read More
Why use C strings in C++?...


c++cstlstringc-strings

Read More
Can't assign string literals to array of characters in C...


cpointersc-stringsstring-literals

Read More
How is C managing memory in this situation?...


cpointersmemoryc-stringsstrtok

Read More
Using .c_str' with pointers (and also pointers to pointers)...


c++c-strings

Read More
C error expected ‘char **’ but argument is of type ‘char (*)[10]’...


cpointersc-stringsstrcatfunction-definition

Read More
Insert length of #defined string literal at first entry of literal at compile time...


cmacrosc-preprocessorc-strings

Read More
Why is strlen() about 20 times faster than manually looping to check for null-terminated character?...


c++cc-stringsstring-lengthstrlen

Read More
How to get rid of the segmentation error while using C...


cinitializationprintfc-strings

Read More
Failure to work on string comparison using function pointer in C...


cfunctioncomparisonc-stringsbsearch

Read More
Why do I first have to strcpy() before strcat()?...


cc-strings

Read More
Beginner to C - Malloc Not Required For String In Struct...


cstructmallocc-strings

Read More
Selecting only the first few characters in a string C++...


c++stringc-strings

Read More
why does the variable become 0 suddenly?(c language)...


cfor-loopcharcs50c-strings

Read More
How to write a custom exception class derived from std::invalid_argument?...


c++exceptionc-stringsstdstringmicro-optimization

Read More
Implementation of strcmp...


cfunctioncharc-stringsstrcmp

Read More
Can someone explain to me the performance difference of using pointers vs indices for accessing an a...


cpointerscharc-stringsindices

Read More
Trying to count the number of commas in a string and save to a int counter...


cloopscharcounterc-strings

Read More
Malloc is giving me a string that isn't empty, and I'm unable to empty it...


cmallocc-stringsspace

Read More
Why does this code work as expected if I use Visual C(Visual Sudio 2022) but doesn't if I use gc...


cfunctioncharc-stringslongest-substring

Read More
BackNext