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
Why do we need a structure?
Explain low-order bytes.
Differentiate between null and void pointers.
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
What is the use of c language in real life?
What are the standard predefined macros?
What is c method?
Explain about block scope in c?
What is structure of c program?
How does sizeof know array size?
For what purpose null pointer used?
What is file in c preprocessor?
What is the total generic pointer type?
How can I check whether a file exists? I want to warn the user if a requested input file is missing.
What is bubble sort in c?