Unexpected output
#include<stdio.h>
main()
{
int a,b[100];
a=60;
printf("size of 01 is %d\n",sizeof(01));
printf("size of 0x11 is %d\n",sizeof(0x11));
printf("%d characters print\n",printf("%d integers read\n",scanf("%d%d",&a,&b)));
printf("now %d charas print \n",printf("%d",a));
printf("%d characters in hello world \n",printf("hello world"));
}
/*output
size of 01 is 4
size of 0x11 is 4
5
6
2 integers read
17 characters print
5now 1 charas print
hello world11 characters in hello world
Press any key to continue . . .
*/
my question is why 5 is printed in the line "now 1 charas print"
and why size of 0x11 and 01 are 4.....
I know since i am using g++ size of integer is 4
...Since i cannot edit the title the spelling mistake remains there...sorry for that.....