Absurd
Absurd Git ·
Byte Magazine Archive ·
Abort Retry Fail
Page 7 of 9
20190215 Linux Kernel 4.19 ⇢
For those individuals using Linux distributions that ship with older kernels, they may find themselves needing a newer kernel for hardware support, and not having a package available. Never fear. In this document, I will be using 4.19.21, but you will wan
20150823 An Introduction to C, XIII ⇢
We've covered a lot of ground with C so far. The big problem here is that we've not yet covered one of the most common tasks on a UNIX system. We have not covered files. So, let's look at files. For file I/O in C, you need a file pointer. We declare a fi
20150705 An Introduction to C, XII ⇢
So, in this part of the C Intro, I would like to say a bit about memory management. VARIABLES In C, there are really only two ways that you can allocate memory. The first and most common way is by declaring a variable. The second way is to explicitly
20150610 An Introduction to C, XI ⇢
Some time has passed since I last did anything with my C tutorial. This is largely due to work and having several different projects going at any one time (learning Chinese, developing a hobby OS, a gaming community, etc...). However, I felt that I ought
20130122 An Introduction to C, X ⇢
It's time for a cake walk. Here's an array of integers. int values[10]; int i; for (i = 0;i < 10;i++) { values[i] = 2 * (i + 2); printf("The value at i %d is %d\n", i, values[i]); } That's it. Floats and other data types work p
20120910 An Introduction to C, IX ⇢
In the last post, I briefly introduced arrays and strings. Let's look a little more closely. #include #include int main(void) { char name1[5] = "Ford"; char name2[4] = "Jim"; char name3[8] = ""; if
20120830 An Introduction to C, VIII ⇢
So far, we have already covered the use of the character data type, but what happens when you want to print more than one character to screen? This was strings are for. A string is a series of characters terminated as with a null character. That is, a str
20120815 An Introduction to C, VII ⇢
So far, I have thrown a lot of information at you very quickly. Let's recap with completely useless programs. The character variable type uses 8 bits of memory (one byte). This type is declared with the 'char' keyword. While the character type is used to
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
RSS
© MMIX - MMXXVI,
Abort Retry Fail LLC
Licentiam Absurdum
Donate to keep Absurd running!
