Basic C Language Tutorial for beginners

I'm telling you about Some Basic Programming Languages in Computer Science Feild. So, guys, there are many Basic Programming Languages to begin to start your career in Web development.

Today I teach you C Language. according to www.tiobe.com C Language is the second number of Top Programming Languages in the Wolrd.

There are some basic programming languages.


  • Fortran
  • COBOL
  • Pascal programming language
  • C++
  • Java
  • Visual Basic
You may also learn basic from the above-mentioned Languages.



Why I  Use C Langauge Programming for Basic?

This is true and no doubt that is the second top in the list and this is so simple and easier than other languages by my opinion. this is also can easily work on a simple note pad.

How it is Work.

it's work simply and also need an interpreter like (Dev C ++ ) because you should practice on the compiler. So you can improve your programming via practice.

so let us Start Programming.

1. Simple Program. Hello World 


#include<conio.h>
#include<stdio.h>
main()
{
      printf("Hello World");
      
      getch();}

this is Simple Program where we print hello world.

2. Size of Function 


#include<conio.h>
#include<stdio.h>
main()
{
   
      printf("Integer occupies %d bytes",sizeof(int));
      printf("\n");
      printf("float occupies %d bytes",sizeof(float));
      printf("\n");
      printf("char occupies %d bytes",sizeof(char));
   
   
      getch();}

3. Arithmetic Operator 

How Arithmetic Operators Work in below Code.


#include<conio.h>
#include<stdio.h>
main()
{
      //implementation of arithmatic operators
      
      int x,y;
      
      printf("Enter first value:");scanf("%d",&x);
      printf("Enter second value:");scanf("%d",&y);
      
      printf("\n\n");
      printf("\nSum = %d",x+y);
      printf("\nDiff = %d",x-y);
      printf("\nProduct = %d",x*y);
      printf("\nDivision = %d",x/y);
      
      
      getch();}

4. Format Specifier in print function

#include<conio.h>
#include<stdio.h>
main()
{
      //use of %d - Format Specifier in printf function
   
      int x,y;
   
      printf("Enter first value:");scanf("%d",&x);
      printf("Enter second value:");scanf("%d",&y);
   
      printf("\n\n");
      printf("\n %d + %d = %d",x,y,x+y);
      printf("\n %d - %d = %d",x,y,x-y);
      printf("\n %d * %d = %d",x,y,x*y);
      printf("\n %d / %d = %d",x,y,x/y);
   
   
      getch();} 

5. Odd-Even identification, use of modulus % operator with an if-else structure 


#include<conio.h>
#include<stdio.h>
main()
{
      //Odd - Even identification, use of modulus % operator with if-else structure
   
      int num;
   
      printf("Enter Number:");scanf("%d",&num);
   
      if(num%2 == 0)
      printf("%d is even number",num);
      else
      printf("%d is odd number",num);

   
   
      getch();}

COMMENTS

Name

Blogging,15,C Language,3,How to,30,Make Money,11,SEO,28,Web Development,25,
ltr
item
Weblog Tricks - Blogging Tricks for Beginners: Basic C Language Tutorial for beginners
Basic C Language Tutorial for beginners
Basic C Language Tutorial for beginners C# C++ Programming Language
https://1.bp.blogspot.com/-4rZ74U8H8sE/XH9o_nAeneI/AAAAAAAABSY/1WITIgKDOj0SdFH_IreDqY12jgYZQLTqgCLcBGAs/s400/programmer-1835333_960_720.png
https://1.bp.blogspot.com/-4rZ74U8H8sE/XH9o_nAeneI/AAAAAAAABSY/1WITIgKDOj0SdFH_IreDqY12jgYZQLTqgCLcBGAs/s72-c/programmer-1835333_960_720.png
Weblog Tricks - Blogging Tricks for Beginners
https://www.weblogtricks.com/2019/03/basic-c-language-tutorial-for-beginners.html
https://www.weblogtricks.com/
https://www.weblogtricks.com/
https://www.weblogtricks.com/2019/03/basic-c-language-tutorial-for-beginners.html
true
3158682668530211189
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy