I happened to see quantSpec[(1024)] in FDKAAC audio codec. It's written in C, C++.
What does the parenthesis mean? Is it not as same as quantSpec[1024]?
I happened to see quantSpec[(1024)] in FDKAAC audio codec. It's written in C, C++.
What does the parenthesis mean? Is it not as same as quantSpec[1024]?
Use of parentheses is necessary when you want to change the order of precedence of operations when evaluating an expression. Sometimes, especially in long expression in the conditionals of if and while statements, presence of parenthesis make the code easier to read.
3 + 5*10 == 2 + 50
You can change the order of operations by using parenthesis:
(3 + 5)*10 == 8*10
In the example that you have presented, removing the parenthesis will not change anything.
if and while statements that are easier to read when there are paranthesis.