python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Precedence of function call in C++ and Python
I have two similar codes in C++ and Python.
C++ Code
#include <iostream>
using namespace std;
int i = 0;
int fcn()
{
i = 1;
return 1;
}
int main()
{
i = 0;
i = i + fcn();
...
chengi666
Votes: 0
Answers: 0
Unary operator precedence in Operator Precedence Parser
I am implementing a Recursive Descent Parser to parse a C-like language. For parsing expressions, I was using an Operator Precedence parser, but I wanted to make the precedence of some binary operator...
ishaangupte
Votes: 0
Answers: 0
Misunderstood Operators Precedence in C
I was doing some exercises on the order of execution of operations in C and I came across a case that I did not quite understand.
int d = 1;
int e = d--/10; // the result of e will be 0;
before c...
Nimpo
Votes: 0
Answers: 2
Seg fault after failing to loop multiple times in C
I am doing an exercise where I create an array and populate the elements with integers. I first input the length of the array to malloc for the size. Then, I scan the elements of each point in the arr...
Jacob G
Votes: 0
Answers: 2