Posts
Showing posts with the label C
Compiling a C program using C and C++ compilers, and a C++ program with ...
- Get link
- X
- Other Apps
C: Convert cm and inches using functions.
- Get link
- X
- Other Apps
Demonstration of using functions to convert cm and inches with a main program loop. Some constraints applied to protect against incorrect inputs. Uses a goto statement to emergency exit on wrong input. Repl: https://replit.com/@pereiradaniel/Convert-cm-or-inches-functions Git repo: https://github.com/pereiradaniel/c_programs/blob/master/metric_imperial_conv/conv2.c
C: Convert cm to inches (no function).
- Get link
- X
- Other Apps
Simple program demonstrating conversion of cm to inches without implementing a function. This is simpler, but your ideal implementation may depend upon a variety of factors requiring your careful consideration. Repl: https://replit.com/@pereiradaniel/Convert-cm-to-inches-no-function Git repo: https://github.com/pereiradaniel/c_programs/blob/master/metric_imperial_conv/conv_alt.c
C: Decimal to binary conversion with non-recursive function.
- Get link
- X
- Other Apps
C: Decimal to binary conversion using a recursive function.
- Get link
- X
- Other Apps
C: Exercise 4-3 improved by splitting ascending/descending loop into two...
- Get link
- X
- Other Apps
C: Improve exercise 4-3 with improved ascending/descending for loop.
- Get link
- X
- Other Apps
C: Exercise 4-3, sort by ascending or descending order.
- Get link
- X
- Other Apps