0 votes 0 votes how to deal with multiple printf statement in C language. how this code will work?? void main() { clrscr(); printf("%d%d%d", printf("GATE"),printf("2018"),printf("IITian")); } Programming in C programming-in-c + – Hira Thakur asked Aug 18, 2017 Hira Thakur 315 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 4 votes 4 votes IITian2018GATE446 is o/p // as printf evaluates from right to left so first IITian then 2018 and than GATE will be printed and printf returns the no. of charcters for gate its 4 , for 2018 its 4 and for iitian its 6 , and due to %d it will print integer value sumit goyal 1 answered Aug 18, 2017 • selected Aug 18, 2017 by Hira Thakur sumit goyal 1 comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes Evaluation of printf will be done from right to left so it wil print IITian 2018 GATE and printing will be done as 4 4 6 so the output will be IITian GATE 2018 4 4 6 saipriyab answered Sep 21, 2017 saipriyab comment Share Follow See all 0 reply Please log in or register to add a comment.