c - What does a number argument in printf without quotes do? -


what number argument in printf without quotes do?

e.g. printf( 3 + "goodbye"); results in output dbye. why output?

3 + "goodbye" equivalent &"goodbye"[3] - in other words it's pointer fourth element of "goodbye" , example print "dbye".


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -