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
Sir i need notes for structure,functions,pointers in c language can you help me please
What do you mean by command line argument?
Which function in C can be used to append a string to another string?
What is the purpose of main( ) in c language?
Tell me when would you use a pointer to a function?
How to write a multi-statement macro?
Difference between constant pointer and pointer to a constant.
What is c system32 taskhostw exe?
a program that can input number of records and can view it again the record
Write a program to know whether the input number is an armstrong number.
What is const keyword in c?
What does calloc stand for?
What is pass by value in c?
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
what are the advantages of a macro over a function?