Can any one tell me how printf is executing….
Can any one tell me how printf is executing….
EmbLogic Research & Competency Development Labs
Phone: +91 9818467776, 8527567776, 9650467776
Email: info@emblogic.com
Copyright © EmbLogic Embedded Technologies Pvt. Ltd.
lets takes an example…….
i = 10;
printf(“%d%d%d”,i,i++,++i);
pf starts execution process from right to left in case of format species but it executes from left to right in case of format specifier…….by giving an highest priority to i++ then ++i…..& then to i………so o/p is 12 10 12……before execution compiler print the updated value of i i.e 12…….