#include <stdio.h>
int main()
{
printf(5 + "abhishekdas\n") ;
return 0 ;
}
The output of the program is hekdas
. How is it working? Shouldn't it show error? How is it possible to write something like 5 + "abhishekdas"
inside printf
function ?
5+"abhishekdas\n" ==> "abhishekdas\n"+5 ==> &"abhishekdas\n"[5] ==> "hekdas\n"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With