python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Why does an invalid use of C function compile fine without any warnings?
I'm more like C++ than C, but this simple example of code is big surprise for me:
int foo() {
return 3;
}
int main() {
int x;
foo(&x);
return x;
}
https://godbolt.org/z/4ov9nTzjM...
Marek R
Votes: 0
Answers: 4
Getting no output why is that?
I', learning C and I'm getting no output for some reason, probably I don't return as I should but how I should? (described the problem in the comments below :D)
Any help is appreciated!
#include <...
Patton13
Votes: 0
Answers: 2
runtime error: member access within null pointer of type 'struct ListNode' [solution.c]
I am trying to solve the merge k sorted lists question on leetcode using the non-recursive solution. When I run the code it gives the error as mentioned below. Can you help me to solve the problem?
Er...
Sasank Konakalla
Votes: 0
Answers: 2
When i use my code in local vscode its giving only 63 as answer but when i use a different online complier it works fine
This is a Luhn algorithm code and it works fine in an online complier but when I use it in my local vscode it is only giving 63 as output.
I dont know if its a memory issue as it late long variable.
i...
Karma0o7
Votes: 0
Answers: 1