Answer Posted / pedda
i++ and ++i mean the same thing but they have differently
i++ define post increment that means when the function
is completely after that the value is increment
Example:
i=4 find d=i++ + i; d=9 because i++
initially the value is 4 so 4+4=8 after tha the value d is
increment so finally d value is 9
++i define pre increment that means when the function
is starting increment
Example:
i=4 find d=++i +i; d=9 ++i value is increment
starting so ++i value is 5 so d value is 9
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
what is use of malloc and calloc?
What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers
What is %d called in c?
What are the primitive data types in c?
what is the role you expect in software industry?
Why main function is special give two reasons?
The statement, int(*x[]) () what does in indicate?
Tell us the use of fflush() function in c language?
What extern c means?
What is the use of bit field?
Explain what are header files and explain what are its uses in c programming?
Difference between strcpy() and memcpy() function?
what is the difference between 123 and 0123 in c?
write a program fibonacci series and palindrome program in c
Explain the use of #pragma exit?