If you are hidden--both unseen and unheard--when you make an attack, [B] you give away your location when the attack hits or misses. Does [B] "you give away your location" refer only to [A] "guessing the target's location" -- in other words, the location no longer needs to be guessed so there is no miss chance. By RAW: when attacking while hidden, what does it mean to "give away ...

Understanding the Context