Search code examples
C pointers: Function returns a pointer defined in its body...

cpointersscopec-stringsstorage-duration

Read More
Returning a pointer on the heap and the consequential behaviour...

cmallocheap-memorystorage-duration

Read More
Function returning pointer into static string...

cpointersstaticstring-literalsstorage-duration

Read More
Linked list without malloc...

cmallocundefined-behaviorsingly-linked-liststorage-duration

Read More
const char* vs const char[]...

c++cstring-literalsstorage-duration

Read More
Initializing local array variable in C...

arrayscinitializationstorage-duration

Read More
Do all const objects have static storage duration?...

c++staticconstantslanguage-lawyerstorage-duration

Read More
Why string copied by strcpy() after returning from function is null in C...

cfunctionreturn-valuestring-literalsstorage-duration

Read More
How can static local variable shared along different translation unit?...

c++staticlinkagestorage-durationtranslation-unit

Read More
Static storage class in header file...

cscopestaticstorage-duration

Read More
C++ Issue with scope?...

c++pointersscopeundefined-behaviorstorage-duration

Read More
Question about pointers and automatic storage duration in C...

cpointerslifetimestorage-duration

Read More
When do the elements of array store garbage value in C programming?...

arrayscinitializationstorage-duration

Read More
Can we initiate an array literal with variables in C?...

arrayscargumentsliteralsstorage-duration

Read More
Returning Local Char Pointer To Array Not Cause Segmantation Fault...

cpointersscopeundefined-behaviorstorage-duration

Read More
why does returning the local variable address throws an error but returning the local variable value...

cscopereturn-valuereturn-typestorage-duration

Read More
A question about returning local pointer variable in function...

creturn-valueliteralsstring-literalsstorage-duration

Read More
Are "thread storage duration" and "thread local storage duration" the synonyms?...

clanguage-lawyerthread-local-storagestorage-duration

Read More
Is char* created with "..." and new are on stack and heap respectively? Just want a brief ...

c++pointersnew-operatorstring-literalsstorage-duration

Read More
Ternary operator in a for loop...

cstaticoperator-keywordconditional-operatorstorage-duration

Read More
Segementation fault whilst trying to deep copy struct...

cscopedynamic-memory-allocationstorage-duration

Read More
Return an array without getting a Dangling pointer as result in C++...

c++arraysfunctionreturn-typestorage-duration

Read More
Adding two corresponding array elements and return the resultant array...

cscopefunction-definitionvariable-length-arraystorage-duration

Read More
Are are elements of an empty array NULL valued?...

arrayscinitializationstorage-duration

Read More
What is the storage duration of a temporary object: automatic, thread, static, or dynamic?...

c++temporary-objectsstorage-duration

Read More
Is it ok to return a variable or object by reference in C++?...

c++scopereferencereturnstorage-duration

Read More
Stack VS Heap, what goes where here?...

cpointersmallocstorage-duration

Read More
When is a char array heap vs stack allocated?...

arrayscscopestring-literalsstorage-duration

Read More
Initializer element is not a compile-time constant using C...

cinitializationglobal-variablesconstant-expressionstorage-duration

Read More
Return compound literal...

cstandardsundefined-behaviorcompound-literalsstorage-duration

Read More
BackNext