C can do pretty much anything you would want to do in computer programming. What Can a C Program Do?Ĭ was initially used to develop operating systems, so it might not surprise you that the Linux kernel is written in C. The C language is a mid level programming language, which has the benefit of providing useful and easy to use functions, while at the same time is powerful enough to let you control a computer’s basic operations.īONUS: Download the Raspberry Pi programming cheat sheet – a one page PDF guide with instructions on how to create and execute C programs, Python programs, and Shell scripts. Low level programming languages like assembly only give you access to the machine’s basic instruction set. High level programming languages (like Python) provide programmers with commands that make it easy to do tasks like printing text to the computer monitor and logic functions like and, or, and not. type main, args = 0, pretend = 0, frame = frame_needed = 1, uses_anonymous_args = 0 For example, compare this assembly code for a “hello world” program to the C code for the “hello world” program below. Like assembly code, C lets you access powerful low level machine functions, and it has a syntax that is easier to read than assembly code. One advantage of C is that the code runs almost as fast as assembly code. Programs written in C can be run on a wide range of platforms including personal computers, embedded microcontrollers, and supercomputers. The C programming language is one of the most widely used programming languages of all time. It’s a useful reference for both experienced programmers and anyone that wants to learn the C language. If you’re looking for more in-depth information on C programming, a great book to have is The C Programming Language by Brian Kernighan and Dennis Ritchie. The intent of this article is to give you a very basic introduction to C programming on the Raspberry Pi.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |