C programming; Lesson 7: Assignment operator ...
Painless Programming
by
3y ago
C programming; Lesson 7: Assignment operator Assignment operator joins the value of the expression on the right to the value of the variable on the left side. The type of expression value should match the type of variable. Example:                 int a = 5; (value 5 is given  to the variable a ..read more
Visit website
C programming;Lesson 6: Operators for formatting t...
Painless Programming
by
3y ago
C programming;Lesson 6: Operators for formatting the output Special Signs for Surveillance:                        constance                                                   meaning                              \b                                     ..read more
Visit website
C programming;Lesson 5: Getting keyboard input To...
Painless Programming
by
3y ago
C programming;Lesson 5: Getting keyboard input To load data from the keyboard, use the scanf function. The shape of the function is:                                                  scanf ("list_of_formats", list_of_variable_address); The variable address can be obtained by using the operator & before the variable name, while the variable formats are the same as the case of printing data on the screen.  An example of loading a variable from the keyboard:  ..read more
Visit website
C programming; Lesson 4:Print on screen We use the...
Painless Programming
by
3y ago
C programming; Lesson 4:Print on screen We use the printf function to print on the screen. If we only want to print a text message the form of the function is:                                                                     printf ("string of characters to be printed on the screen"); If we want to print a value stored in a particular variable, the form of the function is:               ..read more
Visit website
C Programming; Lesson 3: Numbers and Characters N...
Painless Programming
by
3y ago
C Programming; Lesson 3: Numbers and Characters Numbers: In the C language there are essentially two types of numbers:                                           integers                                           real numbers (floating-point numbers)              type                         ..read more
Visit website
C programming; Lesson 2: Variables Types of ...
Painless Programming
by
3y ago
C programming; Lesson 2: Variables Types of data in the program:                                 constants (0, 5, 3,145)                                 variables (a, iNumber, p) For naming (variables and functions), identifiers are used:                                 English alphabet letters (A - Z, a - z), numbers (0 - 9) and underscore ('_ ..read more
Visit website
C programming; Lesson 1: Main program and def...
Painless Programming
by
3y ago
C programming; Lesson 1: Main program and definition of variables The simplest program in C would be: int main () { return 0; } main is the name for the main function in each C program and every program written in C must have exactly one main function. It should be noted that this is only a symbolic name that gives the compiler an idea of which part of the program to start running first. The word int in front of the tag of the main function indicates that the main () after the completion of the commands and functions contained therein will return a whole number (integer) as a result of th ..read more
Visit website

Follow Painless Programming on FeedSpot

Continue with Google
Continue with Apple
OR