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

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

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