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

c# - Farseer ContactListener is not working -

Automatically create pages in phpfox -

database - one php page with different contents and urls -