0 votes 0 votes closed with the note: IT's solved Consider the following C program. What's the Output and does it depends on the compiler used to run this code? #include<stdio.h> int main() { int i = 1; printf("%d %d %d\n", i++, i++, i); return 0; } Rohit Ranjan asked Mar 10, 2017 • closed Mar 10, 2017 by Rohit Ranjan Rohit Ranjan 364 views comment Share Follow See 1 comment See all 1 1 comment reply dd commented Mar 10, 2017 reply Follow Share @Rohit Ranjan Yes,The order of evaluation in printf() is unspecified: 2 votes 2 votes Please log in or register to add a comment.
Best answer 7 votes 7 votes This is a compiler dependent questions. The evaluation sequence of printf is undefined in the C-language. Start from here to understand the topics. rude answered Mar 10, 2017 • selected Mar 10, 2017 by Rohit Ranjan rude comment Share Follow See all 0 reply Please log in or register to add a comment.