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)
C: check if an array element is empty after zero-out using memset
I am trying to zero out an array element and check its status so it won't be used again, however, it seems doesn't work.
int main(int argc, char const *argv[]){
char pid[10][20] = {"abc", ...
Chocode
Votes: 0
Answers: 1
Does Dead Store Elimination work on class member variables in the Destructor?
I'm aware that DSE is a problem for crypto developers who primarily use C, particularly with the reliance on memset. However, would the same be true if a class zeroes out its member variables within t...
MarkP
Votes: 0
Answers: 0
Properly initialise a struct in C++, specifically addrinfo
I am wondering how I can properly initialise a struct in a "C++-way".
I am filling an addrinfo-structure with the relevant information for my hints (to use in getaddrinfo()).
Depending on ho...
lhiapgpeonk
Votes: 0
Answers: 2
Why does memset print different value when it's set to non zero?
I am trying to understand memset and pointer to an array. Below is my program and when I set the array contents 0 the value of *(p+6) prints 0.
But when I set the value to 5 *(p+6) it prints 84215045
...
pranathi
Votes: 0
Answers: 1