C Programming

Every C program that is to be executable will require a function called main but others functions can be created. C functions encapsulate code, allowing the code to be run and maintained as its own unit. Functions may or may not return data, it is optional. Writing C functions as we used in the last […]

Adding Color to Your Programs Adding color to the output of your programs can make them more visually appealing and adding to their aesthetics. Not only this, though, using color will make notices or warning more noticeable to your users resulting in better acceptance. In this blog we will see how to can both add […]

Writing C While Loops In the last blog we did use a C while loop to help us iterate though the supplied arguments, as a result we can then check what code we need to run. Using a simpler loop we can see more detail on how they work and where we can use these […]

Using getop in C to Read Arguments Having seen our hello world program in a number of forms so far such as the simple hello and then using if we will now extend this further. Using getopt in the C programming language will allow us to pass options to the program in any order. Thinking […]

Conditional Statements in C Using conditional statements in C, such as the if statement above, we can easily create more flexible code. Having already created the hello.c code before that takes arguments to display information. We now need to investigate how to provide a prompt if the user does not supply arguments. Making the script […]

Writing Your First C Program on The Raspberry Pi At theurbanpenguin we offer training and blogs in many languages. Some of these languages are scripted and others compiled. With a compiled language the source code is transformed into a binary program. When using a scripted language the code is translated at run time by the […]