RyanC, nobody is this stupid.
You are a troll.
Get lost.
RyanC, nobody is this stupid.
You are a troll.
Get lost.
A little inaccuracy saves tons of explanation. - H.H. Munro
"...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson
To learn? I can said that I learnt it, but need to understanding what's going in term of "overwriting" , where's the problem on? I can be a good programmer and just say overwrite=delete without knowing what's going inside pc itself !
Additionally, let's assume Im a very ignorant newbie, isn't the forum based on helping others?!
thanks anyway.
Last edited by RyanC; 12-05-2018 at 12:32 PM.
Them being or not a troll is irrelevant. The fact is, the questions presented might as well be legit, and they make you think too. I had never sat down to think what assignment truly is, because it's rather intuitive to me. Maybe it isn't so intuitive for everyone...
Devoted my life to programming...
I can understand why Kernelpanic, john.c, and stahta01 think you're trolling: from the perspective of C programming, your question sounds inane as it should be obvious that the value of i is overwritten by the assignment, and then because assignment is an atomic operation ("atomic" as in "indivisible"), guessing that "he delets data first and then write" surely is a poor guess.Originally Posted by RyanC
At the same time, by your mentioning of "property of pc" and "how pc doing that", it sounds to me that you have in mind what is going on in hardware rather than from the perspective of C programming. This means introducing things like registers, CPU caches, random access memory, and then more permanent and abundant storage like platter-based hard disk drives and solid state drives.
We could very well say that perhaps i corresponds to a register, so "what's going on pc exactly" is that the flip-flops of the register are changed in state to reflect the bit pattern of the number 5. So for an analogy you don't need cake: just imagine a flippable light switch for on-off, and what's happening is that if you want to set it to "on", it's flipped one way, and for "off", it's flipped the other way, and then you have a whole bunch of them such that in a particular off-off-off-off-off-on-off-on ordering they represent the number 5.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Hey troll!
I'm already a good programmer.
All evidence suggests that you will never be a good programmer.
Stop harassing people with your thoughtless childish questions.
A little inaccuracy saves tons of explanation. - H.H. Munro