« first day (1326 days earlier)      last day (1529 days later) » 

nwp
8:30 AM
@adziri In this case no. &x is an int * which points to an int which wouldn't fit in a char, but then you cast it to a char * which points to a char which does fit into a char. In other words this gives you the first byte of x, not the whole int, so it fits. Also not that this is only allowed because char is a special case. Normally you are not allowed to just cast types and dereference.
 
 
8 hours later…
4:13 PM
hey
has anyone here been interviewed by google?
 
Back in the day, but it was never serious... they don't look at non-masters candidates
 
hard?
 
never got that far I don't have an MS so I wasn't considered
The phone screens I had were pretty typical but I was never seriously considered
 
oh ok
weird
most of their job adverts say bachelors
 
@Permian lol, maybe that changed but when I interviewed that was not really true
they would say that and the recruiters would tell you that, but the teams wouldn't even look at non masters
 
4:19 PM
the majority of the sdes have bachelors on linkedin
wrong timing maybe
 
4:55 PM
I'm trying to make a struct array, but I keep getting seg fault. Anyone any idea?
struct ruter {
unsigned int ruterId;
unsigned char flagg;
char prodMod[];
};
struct ruter rutere[N];
When I remove struct ruter rutere[N]; it works fine.
 
nwp
Is that C or C++?
 
C
 
nwp
In C++ it's not legal at all, for C I'm fuzzy on the details.
What do you expect struct ruter rutere[N]; to do? What should the result of sizeof(ruter) be?
 
It gonna be a kind of array, later i try to initialize the variables
But i keep getting seg fault already when i do struct ruter rutere[N];
N = 5
 
nwp
I have to go. These are the rules. Effectively the array does not contain any prodMods if I read this correctly, but it should not crash. Can you provide an example that shows the error on coliru? (click the edit button) I can't reproduce the error.
 
 
2 hours later…
6:50 PM
Oh gosh, I am still stucked into understaning why my finalbufferSize is so small..
@V.7 ? ..
 
7:20 PM
The problems seems like ti be the CompressedBufferSize
My compressed buffer is in a PBYTE variable
I am not sure how to get its complete length so i can tell to the RtlDecompress function how much has been compressed.
 
 
3 hours later…
10:25 PM
Here codereview.stackexchange.com/questions/157881/… in the first answer Toby uses constexpr in basicly all memberfunctions. Now I wonder: if constexpr is used to make the runtime shorter by computing at compiletime, how does that actually save time? Because the variable rational x=1/3 (which is made from userinput), is not yet given a value. Or what is meant?
 

« first day (1326 days earlier)      last day (1529 days later) »