Answered Questions

  • which one saves execution time and why i++, ++i, i=i+1 , i+=1.

    Ashish bhardwaj

    • Jun 29th, 2016

    In i++ process in goes direct in register but in other (i=i+1 , i+=1) process goes in memory t in i++ first process in goes direct in register but in other (i=i+1 , i+=1) process goes in memory then register thats why i++ is fastest then register thats why i++ is fastest

    Shivaraj Dalawai

    • Oct 13th, 2015

    i=i+1: To perform this operation compiler has to perform two operations: (1)ADD \i+1 (2)Assignment operation i=x i++: To perform this operation compiler has to perform only ...