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)
Same code works in main, but not when calling from a function in C
Okay so I'm a beginner programmer so any tips on any part of the code are greatly appreciated,
but the main question is why does the code in function int longestSequence(int n,int array[n]);work when ...
Mary
Votes: 0
Answers: 1
dereferencing function pointer to function returning void throws error: void value not ignored as it ought to be
I am a beginner in C language. Read various SO threads on function pointers. For instance, How does dereferencing of a function pointer happen, Function Pointer - Automatic Dereferencing [duplicate], ...
Singh
Votes: 0
Answers: 1
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
ending condition for recursive function call
I am new to python.
The below recursive code works as expected, so far so good.
What I am wondering about is why after 5 "loops" it stops calling itself recursively.
x=0
def factfunc(n):
...
matiro65
Votes: 0
Answers: 1