FIND YOUR NEXT FEW LINES
Results for “integer”
Small, practical examples. Search by task or narrow things down below.
114 snippets foundClear filters
Represent a small set of named states
C: An enum gives symbolic names to integer state values.
C✓ Tested
Sort a vector
Sort C++ integer values in ascending order.
C++✓ Tested
Sort values with LINQ
Create an ascending sequence from C# integer values.
C#✓ Tested
Test numeric divisibility with a remainder
Bash Scripts: The modulo operator computes an integer remainder.
Bash Scripts✓ Tested
Turn on the LED with a serial command
Arduino / C: Wait for the character 1 in Serial Monitor before turning on the built-in LED.
Arduino / C✓ Tested
Update a shared counter atomically
Java: AtomicInteger provides an indivisible increment operation for a shared counter.
Java✓ Tested