CHAPTERONE
Be focused and you will archive alot. choose your ON C
Explore moreBe focused and you will archive alot. choose your ON C
Explore moreLorem ipsum dolor sit amet consectetur adipisicing elit. Hic odit rem dolorum molestiae fugit deserunt exercitationem recusandae, itaque ratione harum sit repellat dolor temporibus deleniti non voluptatem nostrum quas? Cumque veniam, molestias id natus pariatur dolores aut nemo iure facilis expedita, temporibus exercitationem ullam ex officiis reiciendis quaerat enim consequuntur.
here are some stuffs mostly used in c to declare varaibles, headers, and libaries.
this is a preprocessor directive that is used to include external files (header files) into your source code.For example stdio.h,stdlib.h
This is a funtion that serves as an entry point to every C program.
this funtion is used when ever a c programmer wants to display some output unto the console. In this case we are printing the text "Hello world !" Note :In C text must alwys be printed indouble codes
In this lesson we are going to dive deep into the various components of a
simple C program like that which displayed "Hello WOrld" in our previous lesson
`` `
Various Parts #include this is a preprocessor directive that is used to include external files (header files) into your source code.For example stdio.h,stdlib.h main() This is a funtion that serves as an entry point to every C program. Comments Comments are of two types, sinle-line(/*every line*/ ) and multi - line//BEGINS THIS WAY comments.They help the programmer make notes aabout a funtion or some blog of code this enhances Understanding of the code. They are often ignored by the compiler Printf() this funtion is used when ever a c programmer wants to display some output unto the console. In this case we are printing the text "Hello world !" Note :In C text must alwys be printed indouble codes return 0 ; This statement is used to indicate succeful exxecution of the program. If a C program returns any other value apart form "0", it indicates error in the code at one point Statements Statements are a fundamental units of execution .theyy instruct the computer to perform specific actions. most staments in c end with a semi colon(;) an examples are: printf("Hello, World!"); int x = 6; Semicolon (;) In C we use a semi colon at the end of each command to indicate to the computer that its the end of the command
#include <stdio.h> int main() { //This is a comment printf("Hello, World!"); return 0; }
Hello, World!
Explain the code: Clarify complex logic, algorithms, or specific parts of the code. Document the code: Provide information about the author, creation date, modifications, and overall purpose of the code. Temporarily disable code: Comment out blocks of code for testing or debugging purposes. Best Practices Use comments sparingly and judiciously. Write clear and concise comments. Avoid redundant comments that merely restate the obvious. Update comments when the code is modified.
#include <stdio.h> int main() { // declaration and intialisation int x = 3 ; int y = 2 ; /* sum is gotten by adding x with value of 3 and y with value of 2 */ int sum = x +y ; printf("the sum is %d\n",sum); return 0; }
vildash network team has had alot of impact on others but here are the vildash network team testimonies and expirience while working with the team
you can now connect and text other users from our database. you just neeed to click bellow to message them
WE HAVE CODE EDITORS FOR LANGUAGES LIKE C, C#, C++, HTML, CSS, javascript, JAVA VISUAL BASIC
We dont just teach you to code we teach you to code and build amazing systems.we are group of expert who wants to promote our field of studies