Posts

Showing posts from 2020

Keyword in Some Details

Some Information About the Keywords in C Keywords for Storage Type auto - This is default class of variables declare in the scope. This is very rarely used while writing program in C language. Auto variables are only accessed within a block or scope they have been declared. You can access these variables by using concept of pointers. They are assigned a garbage value by default whenever they are declared. extern – External Storage class used for access a variable from 1 file to another where we creating a large program in C language. static – Static class is used to declare a static variables. Static variables are popularly used keyword while writing programs. A variable that are declared as static, their values not change even the variable is out of the scope. register – Register class is same as Auto class but the only difference is that the variables are declared as register is stored in a register of microprocessor. Keywords for User Defin...

Keywords in C

Keywords in C Language The Keywords are the reserved words in C. These keywords are cannot be changed. These Keywords have some special meaning and these meaning already defined in the C-Compiler. Let's See - C Keywords auto double int struct break else long switch case enum register typedef char extern return union continue for signed void do if static while default goto sizeof volatile const float short unsigned Please refer  this  for More Inforation about this keywords Previous Post Syntax of C Program Next Post Keywords in Details

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.