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

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...

Which Programming Language to Learn First-Java or C++

JAVA VS C++ What is Java   Java is a programming language and computing platform first released by Sun Microsystems in 1995.  It has evolved from humble beginnings to power a large share of today’s digital world, by providing the reliable platform upon which many services and applications are built.  New, innovative products and digital services designed for the future continue to rely on Java, as well. While most modern Java applications combine the Java runtime and application together, there are still many applications and even some websites that will not function unless you have a desktop Java installed.  Java.com, this website, is intended for consumers who may still require Java for their desktop applications – specifically applications targeting Java 8.  Developers as well as users that would like to learn Java programming should visit the  dev.java  website instead and business users should visit  oracle.com/java  for more information...