I have a problem with my function Same_string whose goal is to return the number of similar strings between two linked lists. I already checked, the l ...
I have a problem with my function Same_string whose goal is to return the number of similar strings between two linked lists. I already checked, the l ...
Any of my C programmes utilizing fopen() run perfectly from IDE or Windows environment, but fail when opened from Command Line (cmd.exe), as fopen("r" ...
This is my method. Now SonarQube warns that these two lines can return null (and they can): But i don't know what the best way to check for null ...
I found one more case when compiler thinks that static_cast may return nullptr on non-nullptr argument. It seems that this time there is no undefined ...
According to §6.3.2.3 ¶3 of the C11 standard, a null pointer constant in C can be defined by an implementation as either the integer constant expressi ...
Are there any ANSI C conforming environments where all-bits-zero is not a representation for a null pointer? That is, environments where the following ...
I'm trying to create a Ceasar Cipher. For this test, I used a key of 1 and plain text of "hello." When doing so, I get the error message "Segmentation ...
I am debugging a crash where we have a code snippet similar to - And we happened to see a crash - segmentation fault; whose callstack is shown belo ...
I have a char array and I want to check if it is null. is the same as thanks ...
I was trying to learn the Linked list and perform insertion operations from beginning of the list. while printing the nodes, the first node is not pri ...
I'm trying to learn Fortran2018 using gfortran. When playing around with pointers I noticed that there doesn't seem to be a facility to test for nullp ...
In some legacy code I came across the following null pointer check. if( myPtr > 0 ) { ... } Are there any technical risks of checking for a null ...
C2x, 6.5.3.2 Address and indirection operators, Semantics, 3: The unary & operator yields the address of its operand. A simple question: ca ...
So I’m working on a project that has two const arrays of two classes (classes A and B). The class A array needs access to the class B array while init ...
Can a null pointer be reused? If yes, under what conditions? More specifically, can anyone tell what happens with this piece of code? If it's prob ...
I've been working on a game using c++ and sfml and I've been trying to implement the command pattern as seen in the link below: https://gameprogrammin ...
I don't know why the result of subit is "member access within null pointer of type 'struct ListNode'". I tested the sample and the capital was correct ...
I wanted to add values into my. array but everytime i add it, it gave me an segmentation error, how do i solve this error? it'll be great if there ...
Mark Harris wrote here once - albeit 9 years ago by now - that: In fact cudaFree(0) is commonly used to initialize the CUDA context! and I see ...
I have a simple exercise in C (see code below). The program takes a vector with three components and double each component. The IDE showed me this war ...