What is the difference between i++ and i+1 ?(in terms of memory)
Answer Posted / naresh m
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
| Is This Answer Correct ? | 31 Yes | 3 No |
Post New Answer View All Answers
What is c programming structure?
Explain which function in c can be used to append a string to another string?
How can you invoke another program from within a C program?
When is the “void” keyword used in a function?
How we can insert comments in a c program?
What is void pointers in c?
What is the difference between array_name and &array_name?
What is the purpose of macro in C language?
Is a house a mass structure?
What is an endless loop?
What is bubble sort in c?
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
What is actual argument?
Why enum is used in c?
What are the salient features of c languages?