Posts

Showing posts with the label c

Introduction To Pointers

Image
The most excruciating pain is delivered when we finally work with POINTERS. Learning POINTER brings us closer to the point where Dennis Ritchie directly/indirectly gave rise to OOP referencing method knowingly/unknowingly. Let’s understand the trickiest and the most important concept of C      Programming.     à                                                         à   Pointers    ß Definition:--   Pointer is a special data type which is derived from basic data                                      Types. ·         It is called a derived data type. ·     ...

4 steps successful Build (Big Figure Behind Compilation)

Image
  We all wanna be a coder ( that’s why you're going through this hefty blog, LOL ).So, Let us sort out the basic understanding behind Compilation and how does it work.                                                 What is meant by Compilation?          Journey of A Source Code To Execution Code The process of translating source code written in high level to low level machine code is called as Compilation. The compilation is done by a special software known as compiler. The compiler checks source code for any syntactical or structural errors and generates object code with extension  .obj  (in Windows) or  .o (in Linux) if source code is error free.    How does a compiler understands what we want to do with a piece of code? The Answer Is The Header Itself....... ...

Fragments Of C,C++ & Java (For Successful Coding)

                                               Basic Terms in C... 1.Tokens The smallest unit of  C program is known as tokens. The basic component of a source code or the Building pieces of a source code through which a program is completed to its achievement. Example- variables, keywords,Identifiers,operators, Special Characters.             I'll be defining each Token to make its importance and use clear. 2.Identifiers. Identifiers as thee name suggest are used to identify a programs function, variables, arrays e.t.c created by you. These are the unique names you give to the member variables, member methods and other components of a C program.               Naming rules for an Identifier:- It should not start with a digit (0-9) First character can be a Upper Cas...

Simple Arithmetic Programs In C

Image
I'll be posting C Programs with basic integral addition and subtraction as possible and for more understanding you can leave a comment below. 1.  C Program to Add two Integers..                    #include  <stdio.h>                    // for scanf and printf function                #include <conio.h>                  // for clrscr() and getch()                main()                {                    clrscr();                             // to clear the output screen                    int a,b,add;      ...

Introduction To C

Image
As I've already indicated in the previous post that C Language is the best for those who wants to give coding a good start.    So, I'm going to give you'll an overview of C Language . Note:- It doesn't matter which Language you choose, matters the Algorithm behind solving a specific Problem.                                                    -----   Intro To C  ---- C is a general-purpose language which has been closely associated with the UNIX operating system for which it was developed  since the system and most of the programs that run it are written in C . Many of the important ideas of C stem from the language BCPL , developed by Martin Richards. The influence of BCPL on C proceeded indirectly through the language B, which was written by Ken Thompson in 1970 at Bell Labs, for the first UNIX system on a D...

Why Codes.

Image
                   ..........Reason To Code & Scope Of Coding......... Ever tired to understand How does a Phone works or A computer, calculators, Televisions (smart ones) or any other such devices you ever witnessed of  and if you never did, Let me ask you HOW ?           Let's go through this diagram and understand the two main components of a Device Components of A device          I'll definitely talk about software (Which is the non tangible portion of any device working).. Softwares         It can be termed as instructions for the hardware, the data components and other functionality built is all dependent on Software. Today's software is all based on real world concept. You might have heard about the OOP's Concept of programming languages.        So, it's where we coders code and bring out all ...