The ++
does increment the operand … but in its postfix form, it evaluates to the value before incrementing.
++num1
instead would evaluate to the value after incrementing.
More Related Contents:
- I am getting an error message that I don't know how to fix
- I want to create a program in C to check for @ and . if typed in by user [closed]
- C pointer to another struct
- Determine size of dynamically allocated memory in C
- Can’t compile C program on a Mac after upgrade to Mojave
- C – scanf() vs gets() vs fgets()
- Are there any non-twos-complement implementations of C?
- What are the rules of automatic stdout buffer flushing in C?
- Where is the itoa function in Linux?
- What are the arguments to main() for?
- While (( c = getc(file)) != EOF) loop won’t stop executing
- Why scanf must take the address of operator
- gets() function in C
- iOS library to BitCode
- Enforce strong type checking in C (type strictness for typedefs)
- C11 GCC threads.h not found?
- Need help using qsort with an array of structs
- Undefined reference to pow( ) in C, despite including math.h [duplicate]
- How can a shared library (.so) call a function that is implemented in its loader code?
- C integer overflow
- How can I include a needed C library using GCC?
- Sorting an array in C?
- Implementing Logical Right Shift in C
- Union element alignment
- Malloc function (dynamic memory allocation) resulting in an error when it is used globally
- how to use gettimeofday() or something equivalent with Visual Studio C++ 2008?
- Is there a one-line function that generates a triangle wave?
- why am I not getting an “used uninitialized” warning from gcc in this trivial example? [duplicate]
- Execute program capturing screenshots from windows service
- Why does my function not modify the value of variable in a struct in C?