Basics of C Language for Beginners

SHARE:

Today I'm going to tell 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.

I talk about one and only C language. because according to tiobe.com C Programming Language is the second number of Top Programming Languages in the Wolrd.

There are some basic programming languages.
  • Python
  • Fortran
  • COBOL
  • Pascal programming language
  • C++
  • Java
  • Visual Basic
You may also learn basic from the above-mentioned Languages. read my previous article 15 Top Programming Languages 2019



Basics of C Language for Beginners

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,26,Make Money,11,SEO,27,Web Development,24,
ltr
item
Weblog Tricks - Helping You Succeed To Become an entrepreneur: Basics of C Language for Beginners
Basics of C Language for Beginners
Basics of C Language for Beginners 15 Top Programming Languages 2019 Basic C Language Tutorial for beginners C# C++ Programming Language Python
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVRN-KMmt69KgmAkm5d5EJnYFiO-1bN-Ic7XDjPs8want3U4-yqFy2j0Ob0ZIx2df__nesgc9nLVWGpLLmiMjRhFdk6gwjTitaPabRboWpJGNVFeAC97QPQuXhRbTR8D21YAm_T_kT2lhW/s640/programmer-1835333_960_720.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVRN-KMmt69KgmAkm5d5EJnYFiO-1bN-Ic7XDjPs8want3U4-yqFy2j0Ob0ZIx2df__nesgc9nLVWGpLLmiMjRhFdk6gwjTitaPabRboWpJGNVFeAC97QPQuXhRbTR8D21YAm_T_kT2lhW/s72-c/programmer-1835333_960_720.png
Weblog Tricks - Helping You Succeed To Become an entrepreneur
https://weblogtrickss.blogspot.com/2019/03/basic-c-language-tutorial-for-beginners.html
https://weblogtrickss.blogspot.com/
https://weblogtrickss.blogspot.com/
https://weblogtrickss.blogspot.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