silversam

London, United Kingdom

Jul
15
awarded Popular Question
Apr
24
awarded Scholar
Apr
24
accepted How could a server know if it is connecting with a particular app via tcp or not?
Mar
5
awarded Student
Mar
5
asked Why does a belief network need to be represented using a directed acyclic graph (DAG)?
2018
Dec
11
awarded Critic
Sep
15
accepted How could I use Eisenstein's Criterion to determine irreducibility of $x^{12} + 1$ over $\mathbb{Q}$?
Aug
6
awarded Caucus
Jun
5
accepted How could I encode an Objective C object instance as a string?
Jun
5
awarded Supporter
Jun
2
awarded Student
May
17
asked If a decision problem $A \in \text{NP}$ and there exists reduction so that $A \leq_p B$, for decision problem B, what can be deduced about B?
May
14
comment Is it true that if a polynomial $p(x)$ is irreducible over $\mathbb{Q}$ then it is also irreducible over $\mathbb{Z}$?
@DonAntonio Also will do so thanks as well
May
14
comment Is it true that if a polynomial $p(x)$ is irreducible over $\mathbb{Q}$ then it is also irreducible over $\mathbb{Z}$?
@B.Mehta Yes, that's it $p(x) \in \mathbb{Z}[x]$
May
14
asked Is it true that if a polynomial $p(x)$ is irreducible over $\mathbb{Q}$ then it is also irreducible over $\mathbb{Z}$?
May
3
comment Not showing proper values for structure array in c
Hey also please can you accept the answer if it works for you :)
May
2
comment Should one include the RTT measurements from retransmits in running average for RTT?
But if I was to use the retransmitted segment RTT, would that even make a significant difference to the estimate?
May
1
asked Should one include the RTT measurements from retransmits in running average for RTT?
Apr
28
comment Not showing proper values for structure array in c
Ok, yes in the 2nd example you pass in a pointer, which is a value. However it is also a reference to an address. So while you can modify the data at the address that it points to, assigning a value to the argument after it has been passed in does not change it because it's just a copy of the value of the address you passed in. Also *p can be used to change the value at the address pointed to by pointer p, like *p = 100 (for example if p is a pointer to an integer int *p).
Apr
28
comment Not showing proper values for structure array in c
The main reason is because no memory is allocated to g when your code calls show(g).
1 2 3 4 5