whts Going inside the printf..

Ashokkumar01cbe

Broken In
when i compile the below code
1) program

main( )
{
printf ( 5 + "Good Morning " ) ;
}
i got the result as Morning.. and in another code
2) program

main( )
{
printf ( "%c", "abcdefgh"[4] ) ;
}
in the 2nd program i got the result a "e"..
please explain me whats going inside the printf
 
Top Bottom