0 votes 0 votes #include<stdio.h> int main() { int i = 4, ans; ans = ++i+ ++i + ++i; printf("%d\n", ans); return 0; } What is the output of this program ? Programming in C programming programming-in-c + – Abhisek Saha asked Dec 11, 2017 Abhisek Saha 496 views answer comment Share Follow See all 8 Comments See all 8 8 Comments reply Show 5 previous comments Ajay Jadhav commented Dec 11, 2017 reply Follow Share I copied this program and executed on gcc,outout is 19 0 votes 0 votes joshi_nitish commented Dec 11, 2017 reply Follow Share yes, you might get answer as 19, but theoretically it is undefined 0 votes 0 votes Ashwin Kulkarni commented Dec 11, 2017 reply Follow Share I got 18 ouput on gcc. yes it gives undefined behaviour. 0 votes 0 votes Please log in or register to add a comment.