Posts

Showing posts from July, 2020

Syntax of C Program

Syntax of C Program #include<stdio.h> //Header File void main(){ printf(“Hello”);//prints 'Hello' printf(“\n I am Devil”);//prints 'I am Devil' in New Line } Here is the simple example of Syntax in C program First Line is #include<stdio.h> is the HeaderFile. Then after void is the data type which returns nothing. Then Main() is the Function. C program always start from here. And Next Printf is the function which prints the string which is provide in the brackets. In the next printf function I used a ‘\n’ which is used for new Line. More Important thing is in the program is semicolon ‘;’ - It used to end the current statement. Here, Statement means one line of code wrote abobe. For ex , printf(“Hello”) -> so this is a single statement and we must provide the ‘;’ at the end of statememt. If I forgot to put semicolon at end of statement then compile takes this as single Statement and gives a compile time error because of th...

C Programming - The First Program

My First C Program. I can't wait to execute... Let's Begin Before we begin, let's talk about program. First we make simple program which prints a simple message as you want. I Like to print 'Hello Devil' on my Screen. One more - The File which is stored our program is saved with '.c' extention. For ex, I want to save my File as 'HelloDevil'. so, i simply put '.c' after the name Like 'HelloDevil.c' Let's Start... Program - HelloDevil.c #include<stdio.h> #include<conio.h> void main() { clrscr(); printf("Hello Devil."); getch(); } Output: Hello Devil. Program Explaination: The First main thing is to add header files, without it we can't run our program. The first Header file we uses is a <stdio.h> which is a standard input output header file which contains all the functions related to input and output. 2nd is <conio.h> is used for Console input and out...

C Programming : A Journey Begins

C Programming - Basic Great you are here, Let's start the journey from basic in C Programming . Now First we get some knowledge about the structure of C Program. Because, if we need to know about something, we must understand how it works. Just like to know about someone's likes or dislikes so we can easily handle them. . Program Structure of C Header Files Constant Variable data-type main() { //Your Code... } data-type Function1(data-type param1, data-type param2, data-type param n) { //Your Code... } data-type Function2() { //Your Code... } Were, Header Files is Files which contains a in-built functions libraries, Constant Variable is used for fixed value which remains until program is not finished. data-type is used for describing what type of data is, like int for Integer, char for Characters etc... and Functions is the main portion of the C Programming. were main() is the main Function just like a Heart of the C Programming Now we will execu...

Introduction To C Programming

C Programming Hello Friends, Welcome to Devil Programmers. Now we will Starts C Programming with its basics or Introduction. It is first developed by Dennis M. Ritchie in 1972 at AT&T Bell Laboratory   C Programming is Good Start to Enter into Programming World.   It is easy programming language.  It is Procedural Programming Language.  It is mainly used for low-level programming.  It is very useful to become a good programmer.   In the next Post we will Learn how to create our First Program in C Language. Before that we will need C Programming Software to run our Code. Some of known c programming software are: Turbo C/C++  C Free Dev C++  See you in next Post Thanks you.             Next Post C Programming : A Journey Begins

Welcome

Image
Welcome to Devil Programmer 😊 We were glad to have you here. And we appreciate your desire to learn programming. We will do our best to give you a best of knowledge in easy way. Stay tuned for more updates Thanks for Visiting.