filmov
tv
#67🖥🖲Pattern printing program 🖥C Language Tutorial👨🏫📂📓#shorts#coding

Показать описание
Title:- #67🖥🖲Pattern printing program 🖥C Language Tutorial👨🏫📂📓#shorts#coding
__________________________________________________
main( ) 👇🏼👇🏼
A main is a predefined keyword or function in C. It is the first function of every C program that is responsible for starting the execution and termination of the program. It is a special function that always starts executing code from the 'main' having 'int' or 'void' as return data type. In other words, a main() function is an entry point of the programming code to start its execution.
#include👇🏼👇🏼
The #include is a preprocessor directive used to paste code of given file into current file. It is used include system-defined and user-defined header files. If included file is not found, compiler renders error.
By the use of #include directive, we provide information to the preprocessor where to look for the header files.
stdio.h👇🏼👇🏼
It is a header file or library for Standard Input and Output as it shows by name std(Standard)-i(input)-o(output). The function printf, Scanf, gets, puts etc will not work and will not be able to provide any input to program or get output from the program. Better way to understand any header file is to remove the header file and execute the program and then see what are the errors you are getting.
The printf() function is used for output. It prints the given statement to the console.
The printf() and scanf() functions are used for output and input in C language. Both functions are inbuilt library functions, defined in stdio.h (header file).
%d is a format specifier. It tells the print() function to print an integer value. If we want to print a string %s will be used. Like this for character %c, and for float %f will be used.
\n is a new line character used for moving the curser at new line.
__________________________________________________
main( ) 👇🏼👇🏼
A main is a predefined keyword or function in C. It is the first function of every C program that is responsible for starting the execution and termination of the program. It is a special function that always starts executing code from the 'main' having 'int' or 'void' as return data type. In other words, a main() function is an entry point of the programming code to start its execution.
#include👇🏼👇🏼
The #include is a preprocessor directive used to paste code of given file into current file. It is used include system-defined and user-defined header files. If included file is not found, compiler renders error.
By the use of #include directive, we provide information to the preprocessor where to look for the header files.
stdio.h👇🏼👇🏼
It is a header file or library for Standard Input and Output as it shows by name std(Standard)-i(input)-o(output). The function printf, Scanf, gets, puts etc will not work and will not be able to provide any input to program or get output from the program. Better way to understand any header file is to remove the header file and execute the program and then see what are the errors you are getting.
The printf() function is used for output. It prints the given statement to the console.
The printf() and scanf() functions are used for output and input in C language. Both functions are inbuilt library functions, defined in stdio.h (header file).
%d is a format specifier. It tells the print() function to print an integer value. If we want to print a string %s will be used. Like this for character %c, and for float %f will be used.
\n is a new line character used for moving the curser at new line.