When using Call by Value, you are sending the value of a variable as parameter to a function, whereas Call by Reference sends the address of the variable. In the case of “x++”, another way to write it is “x = x +1”.Ģ) What is the difference between Call by Value and Call by Reference? Another way of writing increment statements is to use the conventional + plus sign or – minus sign. Likewise, the statement “x –” means to decrement the value of x by 1. For example, the statement “x++” means to increment the value of x by 1. One is to use the increment operator ++ and decrement operator –. There are actually two ways you can do this. 1) How do you construct an increment statement or decrement statement in C?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |