cprogramming.bootzlabs.com
Get C Compiler | C Programming
http://cprogramming.bootzlabs.com/get-c-compiler
Before starting make sure that you have a compiler. A compiler is a software that turns the C program code that you write into an executable file that your computer can run. IDE is a software that include an editor where you write your code, the compiler & other tools that help you write a software – your software. Download & install one of the developing environment (IDE compiler) from the list:. 8211; an open source, free, cross platform IDE for C/C (Windows, Linux, Mac OS X). Leave a Reply Cancel reply.
cprogramming.bootzlabs.com
Operators | C Programming
http://cprogramming.bootzlabs.com/c-basic/operators
Operators are symbols which are used to perform logical and mathematical operations. C programming language include unary and binary operators. Unary operations work with one operand (operand can be a variable). Binary operations work with two operands (like: a b). C programming language offers some types of operators:. 1 Mathematical operators – used to perform mathematical calculations. 2 Assignment operators – used to assign the values for variables. A – b. A = b = 100. A = 100 equal to a = a 100.
cprogramming.bootzlabs.com
String Functions | C Programming
http://cprogramming.bootzlabs.com/string-functions
In the library string.h we can find some string functions that can help us work with string and save us the time we may need to spend develop our own string functions. Let’s look at some popular string functions. You can use those functions anytime you need them. Strlen(s); / Returns the length of string s. Javascript is C base scripting language". N = %d n". Strcpy(s1, s2); / Copies string s2 into string s1. S1 = %s s2 = %s n". S1 = "programming is fun" s2 = "programming is fun". We love to code in C".
cprogramming.bootzlabs.com
Loops | C Programming
http://cprogramming.bootzlabs.com/c-basic/loops
C programming language include 3 types of loops:. With while loop we repeats one statement, or a block of code while a given condition is true. while loop check the condition before executing the loop. The condition logic have the same logic and the same rules as the if statements. Syntax of while loop:. While (condition) { one statement or a block of code to be executed, while the condition is true }. Enter numbers, 0 to exit: ". Enter another numbers, 0 to exit: ". You enter the number: %d n". Line 8: ...
cprogramming.bootzlabs.com
Functions | C Programming
http://cprogramming.bootzlabs.com/c-basic/functions
A computer program include dozens, hundreds and even thousands functions. Function should do one thing, and do it excellent. Return type function name( [parameter list] - optional ) { [variables definition] - optional, only if we need variables block of code [return variable;] - optional, only if function return a value. }. The function name is a unique name that indicate the specific task of the function. Example: printf(…); for print. Include stdio.h void print my name(); / function declaration int...
cprogramming.bootzlabs.com
Strings | C Programming
http://cprogramming.bootzlabs.com/strings
Char name[10]; / 9 letters for the name and 1 for NULL ' 0' char name[11]; / 10 letters for the name and 1 for NULL ' 0'. 9 letters for the name and 1 for NULL ' 0'. 10 letters for the name and 1 for NULL ' 0'. Note: the name can be “billy” 6 characters, and the 7 char will be NULL (‘ 0′) that ends the string, if we have a string[10] we don’t have to store a 9 character name in it. Way 1 - char by char. Way 2 - more simple and common. Way 4 - initialize a string to empty string. Enter your name: ". There...
cprogramming.bootzlabs.com
Two Dimensional Array | C Programming
http://cprogramming.bootzlabs.com/two-dimensional-array1038
Two dimensional array is a matrix with rows and columns. The syntax used to declare a two dimensional array is almost like declaring a one dimensional array, but we need include another set of brackets for the second dimension with the size of the dimension. Int arr2d[3][4]; / 3 rows / 4 columns / 12 elements in memory. 12 elements in memory. Two dimensional array have a lot of uses think of an excel table, two dimensional games with a position to be remembered, math, statistics, financial, and a lot more.
cprogramming.bootzlabs.com
Input/Output (I/O) | C Programming
http://cprogramming.bootzlabs.com/c-basic/inputoutput-i-o
The basic thing of using a software is the ability to output information on screen like: printf(“I will be a great Programmer”); and to get some input from the user like: enter a number from the keyboard, get a mouse click or get the finger point from the screen of a smartphone. Write (Don’t Copy Paste Type Letter By Letter) a program that input two numbers and output the sum of the numbers (without line numbers):. Please enter the first number: ". Please enter the second number: ". Syntax – please...
cprogramming.bootzlabs.com
Array of Strings | C Programming
http://cprogramming.bootzlabs.com/array-of-strings
Array of strings is a two dimensional array of characters. We can store words, sentences, letters in array of string for many purpose, crossword puzzle for example. Char str[5][20]; / The array can hold 5 words / sentences of up to 19 character for each word. The array can hold 5 words / sentences of up to 19 character for each word. Note: Each line is a string. We will declare an array for words [3][10] , input words, and print the array:. Enter a word: ". Each line is a string. 0'; i ); return i; }.