Why the sound of the buzzer is not audible as my circuit connections and code is completely correct?
first of all make sure that you removed resistor if u placed it as we do in LED connections .
Because of resistor the buzzer didnt get the voltage it needed bt still u can hear the very low sound if u place the buzzer nearer to your ear .
On removing Resistor a louder sound will be heard .
Hoping this may help you.
Thank you @mohdaquib154 for helping me out.