Posts

Java

What is Java? Java is a high level, object oriented, compiler & interpreter based, platform independent programming language. It is mainly used to develop standalone application softwares, enterprises softwares, web based applications. History and Evolution of Java Java developed by sun microsystem in year 1995 by the team of engineers lead by James Gosling. The project is called The green project. At that time it was developed for embedded software used in consumer electronics like TV set top box, Tosters etc. 1991-1992 : Initially the project was started and its name was Oak. 1993 : concept of Java applet is introduced. 1994 : introduced the web browser called hot Java and became the global leader for internet programming language. 1995 : name changed from oak to Java due to some legal issues. Big companies like Microsoft and Netscape shows their support for Java. 1996 : recognised as general purpose programming language. 1997 : JAVA SE 1.1 2006 : JAVA SE 6, removed ".0"

What is Data Type and variables in C? Easy explanation with real world analogy.

Image
PDF Link  Click Here for PDF PPT Link  Click Here for PPT Code Link  Click Here For Code What is Data Type? The data type is an entity that specifies, what type of data we are storing in a variable. There are mainly 2 type of data types in C: Primitive Non-primitive Enumeration (optional) Let's understand them one by one. Primitive Data Type It is the system's pre-defined or pre-declared data structure and can store only one type of value. Example: Integer, Float, Character. Non-primitive Data Type It is the user-defined data structure, which means we are the ones who will choose what and how to store our data in what manner. Example: Array, Linked list, Stack, Queue, structure, pointer, union, etc. Enumeration Data Type (optional) It is also a user-defined data type, but it is reserved for making integral constants in the C language. What is a Variable? A Variable is like a container that stores a specific type of data. You can understand easily by this example: Have you ever

Stop writing this code again & again | Make boilerplate in VS Code for C

Image
What is boilerplate? In VS Code there is one option called user snippet. In it, we can declare a code that that is being repeatedly used by us like basic structure of C program. Afterwards, when we call it by using defined keyword or say Prefix. The intellisence of VS Code will detect and write that pre-decleared code for us. Advantages: Saves time Reduce error Boilerplate Code Link:  Click here How to make Boilerplate for C in VS Code Step 1: In bottom left you can see gear like icon ⚙️ click on it. Step 2: Click on User Snippet . Step 3: Select C.json Step 4: Copy and paste the given code in it and save the file by ctrl + s. Hurray your boilerplate is ready to use! Just try to type boilerplate in C program file you will see a suggestion just click on it and your code is automatically completed.

TOC: Theory of Computation | Syllabus, Marks Weightage and Important Chapters

Image
You can divide this whole blog into these parts, we will discuss them one by one: Syllabus Marks weightage in different examination Important chapters And some statistics Syllabus of TOC Basically you can divide the whole syllabus into three parts as we see in a broader aspect : Language  automatic  and grammar. We will see the syllabus according to GATE examination because most of the standard or university examination follows the GATE syllabus Regular expressions and finite automata Context-free grammars and push-down automata Regular and context-free languages, pumping lemma Turing machines and undecidability. So as you can see the syllabus is too short. Hence, TOC is considered a score booster subject in many competitive exams, specially in GATE. Marks distribution/ weightage By researching the past year trends we are able to find that most of the exams follow this trend from past 15 years. Closure properties, turing machine and undecidability are the topic

Understanding the basic C Structure | 1st C Program | Getting Started with C

Image
Getting started with C - 02 If you haven't watched the video just watch it now by given link it will give you a great idea of the structure of the C Language. Source code:  Click Here Structure of C Program C program is consist of 3 parts: Header File Main Function {Variable declaration (Optional) + Body} Return Statement code beautified with ray.so

How to install C Compiler and make VS Code ready for Getting Started with C

Image
Getting started with C - 01 This blog can be divided into two parts: Installing VS Code (IDE) Setting it up for an optimised experience Installing C Compiler Watch Full Installation Video It's my guarantee after watching my video you won't be left with any confusion. Link down below: Installing VS Code Step 01: Click on the given link Click here Step 02: Directly click on Windows it will download the installer. Step 03: Run the installer 3.1 : Accept the Agreement and click on Next . 3.2 : You can change the location where you want to install. I will recommend going with the default location. Click on Next . 3.3 : Click on Next . 3.4 : Enable all the options . Which are Created Shortcut, Add "Open with Code" like given in the image below. And click on Next. 3.5 : Click on Install . 3.6 : Click on Finish . Now, VS CODE will open up for the first time. So it will take a while. Setup VS Code for C programming Make sure you are conn

Data Structure: Basic Introduction

Image
What is Data Structure? The Logical and Mathematical Collection of Interrelated Data in an organised way . Why do we need data structure? From exam point of view: Data Structure and Algorithms contains a big marks weightage in almost every standard examination, placement interviews and even if you are doing M. Tech. So, it makes it so important for us to study data structures. From achievers point of view: It gives you a big idea of, "What to use and when to use sort of thing". Concepts of being a successful programmer, and writing a program which is most optimised. And opens endless possibilities to be good in every subjects of CS-IT and CP (Compititive Programming). What is algorithm? The step by step process of solving problem is called an algorithm. Real life analogy Let's assume you are far from your home. And you had a call from your father. And he wants to email a document to his boss (Generally, they don't know how to do by their own... No disre