DIGIT-ARC read-only archive · snapshot: July 23, 2026

whts Going inside the printf..

1 post · originally from https://geek.digit.in/community/threads/whts-going-inside-the-printf.168542/

Ashokkumar01cbe
Ashokkumar01cbe Original post #1
Jan 6, 2013 at 1:54 PM
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