What is the difference between i++ and i+1 ?(in terms of memory)
Answer Posted / rohit
i++ is increment i value by one .. there no need to assign any
other variable to store it..
but in case of i+1 here also incrementing value by one
but if u want to use it in below program we have to
store it in another variable..
so main difference is i++ has less memory compare to i+1
the i++ and i+1 is one and the same who don't accept this answer they may apply this in "c" and then try to prove us wrong
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
Difference between malloc() and calloc() function?
What are the different types of objects used in c?
Differentiate between ordinary variable and pointer in c.
What are the restrictions of a modulus operator?
using for loop sum 2 number of any 4 digit number in c language
When should a type cast not be used?
difference between Low, Middle, High Level languages in c ?
printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What is the purpose of sprintf() function?
How can I implement sets or arrays of bits?
how can I convert a string to a number?
What is a double c?
What are the preprocessor categories?
What is memcpy() function?