3 votes 3 votes Programming in C made-easy-test-series programming-in-c programming + – kamakshi asked Nov 14, 2017 • edited Mar 4, 2019 by adeebafatima1 kamakshi 433 views answer comment Share Follow See all 5 Comments See all 5 5 Comments reply Show 2 previous comments kamakshi commented Nov 14, 2017 reply Follow Share @ sukannya my doubt is as i++ is in brackets wont it will first do i=i+1 and then it will print i.if brackets won't b there then its fine 0 votes 0 votes Namit Dhupar commented Nov 14, 2017 i edited by Namit Dhupar Nov 14, 2017 reply Follow Share Brackets don't matter, answer will be same regardless, and what you are saying is only possible if it would have been ++i (pre increment) and for post increment (i++) value of i will print first and then incremented value 0 votes 0 votes Sukannya commented Nov 14, 2017 reply Follow Share @kamakshi, see i++ is within brackets but it is also inside a function, so post increment would say, increment i when you are done with all other things like printing and stuff. So,i=1 would be printed then incremented and i++ and (i++) doesn't make any difference. See https://stackoverflow.com/questions/40282254/why-does-enclosing-increment-operator-in-parentheses-not-make-a-difference 0 votes 0 votes Please log in or register to add a comment.
Best answer 1 votes 1 votes i think it must ...1,5,2,5 ...void fun(); just function prototype....and (i++) will print and then increment...? hs_yadav answered Nov 14, 2017 • selected Nov 14, 2017 by kamakshi hs_yadav comment Share Follow See all 2 Comments See all 2 2 Comments reply kamakshi commented Nov 14, 2017 reply Follow Share If any function is starting with void then it means it is a function declaration or prototype?? 0 votes 0 votes Anu007 commented Nov 14, 2017 reply Follow Share void means there is no value returning this statement. 0 votes 0 votes Please log in or register to add a comment.