Skip to main content

Basic C programming

 

"c language is a very old and powerful programming language."





in this article you will learn about basic c programming stuffs and after reading this you will be able to write and run basic c programs.


so lets start with the basic c program:

#include<stdio.h>

#include<conio.h>

int main()

{

printf("WELCOME TO THIS BLOG");

return 0;

}

  • so lets start to learn the c language
  • so look at the code given above
  • in this code the first two line #include<stdio.h>
  • #include<conio.h> are known as header files or c header files 
  • this file contains all the functions so when we are typing a 
  • c program we must need to include it.
  • int main() indicates the main function means every code will
  • start executing by this line.
  • printf() is the function in c language to print the name of line or a word.
  • return 0 indicated that the function is returning 0.
  • so its mean that the the program run successfully
  • we can give arguments in parentheses ()
  • int main(int a,int b) like this
  • all c code lines will come in curly braces {}

congratulations you have written your first c program.

we will see about other things in c language in next article.

                                  Thank U



Comments

Popular posts from this blog

Python Programming Language

  Basic Information: Python is a high-level, interpreted, general-purpose programming language. Its design philosophy emphasizes code readability with the use of significant indentation.  Python is dynamically-typed and garbage-collected. It supports multiple programming paradigms, including structured (particularly- procedural), object-oriented and functional programming.  Anyone can learn and use python language and easily do coding with python Below are some facts about Python Programming Language:  Python is currently the most widely used multi-purpose, high-level programming language.  Python allows programming in Object-Oriented and Procedural paradigms.  Python programs generally are smaller than other programming languages like Java. Programmers have to type relatively less and indentation requirement of the language, makes them readable all the time.  Python language is being used by almost all tech-giant companies like – Google, Amazon, Faceb...

TWO BEST SMARTPHONES UNDER 25000

 In 25k price segment  broad range of smartphones  from top brands like Samsung, Xiaomi, Oppo, Vivo, Nokia, OnePlus, LG, Asus, and more.  All these smartphones match up the level of  high-end flagships in terms of camera quality, performance, design, battery life, 4g Volte connectivity, and more.  The mid-range processor in these phones offer lag-free and faster performance. Below is the list of mobiles under Rs 25000 that we have curated for you: 1.ONE PLUS NORD CE 2 5G: Price:23,999/- 6GB RAM, 128GB Storage 65W SUPERVOOC Charger Mediatek Dimensity 900  6.43 inch, 90Hz FHD+ AMOLED Display 64MP +16MP front camera             Full description: 65W SUPERVOOC – Accelerated charge velocity shall rocket the 4500mAh battery to a day's power in 15 minutes. Certified by TÜV Rheinland, one shall “Charge & Play” with absolute peace of mind. Mediatek Dimensity 900 – Powered by a 5G enabled, octa-core monster of a chipset that’s t...