filmov
tv
#35🖥🖲C Programming Exercise💻 C Language Tutorial👨🏫📂📓#shorts #coding
Показать описание
Title:- #35🖥🖲C Programming Exercise💻 C Language Tutorial👨🏫📂📓#shorts #coding
_________________________________________________
\n is a new line character, it will move the curser from one line to next line
for loop in C
°°°°°°°°°°°°°°°°°°°°°°
The for loop in C language is used to iterate the statements or a part of the program several times. It is frequently used to traverse the data structures like the array and linked list.
Syntax
°°°°°°°°°°°°
The syntax of a for loop in C programming language is −
for ( init; condition; increment ) { statement(s); }
Here is the flow of control in a 'for' loop −
The init step is executed first, and only once. This step allows you to declare and initialize any loop control variables. You are not required to put a statement here, as long as a semicolon appears.
Next, the condition is evaluated. If it is true, the body of the loop is executed. If it is false, the body of the loop does not execute and the flow of control jumps to the next statement just after the 'for' loop.
After the body of the 'for' loop executes, the flow of control jumps back up to the increment statement. This statement allows you to update any loop control variables. This statement can be left blank, as long as a semicolon appears after the condition.
The condition is now evaluated again. If it is true, the loop executes and the process repeats itself (body of loop, then increment step, and then again condition). After the condition becomes false, the 'for' loop terminates.
About C:-
°°°°°°°°°°°°°°
The C Language is developed by Dennis Ritchie in 1972 at the Bell Telephone Laboratories for creating system applications that directly interact with the hardware devices.C is the most widely used computer language.
Fact About C
°°°°°°°°°°°°°°°°°°
C was invented to write an operating system called UNIX.
C is a successor of B language which was introduced around the early 1970s.
The language was formalized in 1988 by the American National Standard Institute (ANSI).
The UNIX OS was totally written in C.
Today C is the most widely used and popular System Programming Language.
Most of the state-of-the-art software have been implemented using C.
Semicolons
°°°°°°°°°°°°°°
In a C program, the semicolon is a statement terminator. That is, each individual statement must be ended with a semicolon. It indicates the end of one logical entity.
Identifiers
°°°°°°°°°°°°
A C identifier is a name used to identify a variable, function, or any other user-defined item. An identifier starts with a letter A to Z, a to z, or an underscore '_' followed by zero or more letters, underscores, and digits (0 to 9).
C does not allow punctuation characters such as @, $, and % within identifiers. C is a case-sensitive programming language. Thus, Manpower and manpower are two different identifiers in C. Here are some examples of acceptable identifiers −
mohd zara abc move_name a_123 myname50 _temp j a23b9
Keywords
°°°°°°°°°°°°
The following list shows the reserved words in C. These reserved words may not be used as constants or variables or any other identifier names.
auto else long switch break enum register typedef case extern return union char float short unsigned const for signed void continue goto sizeof volatile default if static while do intstruct _Packed double
printf() and scanf() in C
°°°°°°°°°°°°°°°°°°°°°°°°°°°°
The printf() and scanf() functions are used for input and output in C language. Both functions are inbuilt library functions, defined in stdio.h (header file).
printf() function
°°°°°°°°°°°°°°°°°°°
The printf() function is used for output. It prints the given statement to the console.
The syntax of printf() function is given below:
printf("format string",argument_list);
The format string can be %d (integer), %c (character), %s (string), %f (float) etc.
scanf() function
°°°°°°°°°°°°°°°°°°°
The scanf() function is used for input. It reads the input data from the console.
scanf("format string",argument_list);
Topic covered:-
c language tutorial for beginners
c language programming for beginners
how to learn basic of c language
basic of c language
c language tutorial
c language tutorial in hindi
programming through c
programming in c language
program to print pattern
pattern printing program
program to print a pattern using c language
variable in c language
what is printf() function
what is scanf() function
why we use samycolon ; at the end of line
what is \n
for loop
while loop
do while loop
what is for loop
what is while loop
what is do while loop
#shorts
#youtubeshorts
#coding
#programming
#cprogramming
#codecode
_________________________________________________
\n is a new line character, it will move the curser from one line to next line
for loop in C
°°°°°°°°°°°°°°°°°°°°°°
The for loop in C language is used to iterate the statements or a part of the program several times. It is frequently used to traverse the data structures like the array and linked list.
Syntax
°°°°°°°°°°°°
The syntax of a for loop in C programming language is −
for ( init; condition; increment ) { statement(s); }
Here is the flow of control in a 'for' loop −
The init step is executed first, and only once. This step allows you to declare and initialize any loop control variables. You are not required to put a statement here, as long as a semicolon appears.
Next, the condition is evaluated. If it is true, the body of the loop is executed. If it is false, the body of the loop does not execute and the flow of control jumps to the next statement just after the 'for' loop.
After the body of the 'for' loop executes, the flow of control jumps back up to the increment statement. This statement allows you to update any loop control variables. This statement can be left blank, as long as a semicolon appears after the condition.
The condition is now evaluated again. If it is true, the loop executes and the process repeats itself (body of loop, then increment step, and then again condition). After the condition becomes false, the 'for' loop terminates.
About C:-
°°°°°°°°°°°°°°
The C Language is developed by Dennis Ritchie in 1972 at the Bell Telephone Laboratories for creating system applications that directly interact with the hardware devices.C is the most widely used computer language.
Fact About C
°°°°°°°°°°°°°°°°°°
C was invented to write an operating system called UNIX.
C is a successor of B language which was introduced around the early 1970s.
The language was formalized in 1988 by the American National Standard Institute (ANSI).
The UNIX OS was totally written in C.
Today C is the most widely used and popular System Programming Language.
Most of the state-of-the-art software have been implemented using C.
Semicolons
°°°°°°°°°°°°°°
In a C program, the semicolon is a statement terminator. That is, each individual statement must be ended with a semicolon. It indicates the end of one logical entity.
Identifiers
°°°°°°°°°°°°
A C identifier is a name used to identify a variable, function, or any other user-defined item. An identifier starts with a letter A to Z, a to z, or an underscore '_' followed by zero or more letters, underscores, and digits (0 to 9).
C does not allow punctuation characters such as @, $, and % within identifiers. C is a case-sensitive programming language. Thus, Manpower and manpower are two different identifiers in C. Here are some examples of acceptable identifiers −
mohd zara abc move_name a_123 myname50 _temp j a23b9
Keywords
°°°°°°°°°°°°
The following list shows the reserved words in C. These reserved words may not be used as constants or variables or any other identifier names.
auto else long switch break enum register typedef case extern return union char float short unsigned const for signed void continue goto sizeof volatile default if static while do intstruct _Packed double
printf() and scanf() in C
°°°°°°°°°°°°°°°°°°°°°°°°°°°°
The printf() and scanf() functions are used for input and output in C language. Both functions are inbuilt library functions, defined in stdio.h (header file).
printf() function
°°°°°°°°°°°°°°°°°°°
The printf() function is used for output. It prints the given statement to the console.
The syntax of printf() function is given below:
printf("format string",argument_list);
The format string can be %d (integer), %c (character), %s (string), %f (float) etc.
scanf() function
°°°°°°°°°°°°°°°°°°°
The scanf() function is used for input. It reads the input data from the console.
scanf("format string",argument_list);
Topic covered:-
c language tutorial for beginners
c language programming for beginners
how to learn basic of c language
basic of c language
c language tutorial
c language tutorial in hindi
programming through c
programming in c language
program to print pattern
pattern printing program
program to print a pattern using c language
variable in c language
what is printf() function
what is scanf() function
why we use samycolon ; at the end of line
what is \n
for loop
while loop
do while loop
what is for loop
what is while loop
what is do while loop
#shorts
#youtubeshorts
#coding
#programming
#cprogramming
#codecode