Skip to main content

Posts

Difference between the electronic and electric

Hello friends my name is Ayush garg and I going to explain the difference between electronic and electric circuits. Electric circuit is the circuit which don’t have a capability of the decision making while electronic circuit have a capability of the decision making. Electronic circuit required less amount of voltage. It mostly worked on the direct current while electric circuit operates on high alternating current. Mobile, laptop, microwave oven and etc. are the electronic devices. The main work of electronic devices to manipulate the current for performing a particular task. Mostly electronic devices operate on the dc power supply. But the ac current is supply in our house of about 220 volt and 50 Hz frequency. So this ac current are required conversion into the dc current. For that conversion the devices sometime contain built-in   rectifier with filter (a device which convert a.c current into dc current) and sometime in form of adapter (ex-mobile, laptop). Some i...
Recent posts

Statically typed language vs Dynamically typed language.

Statically typed language and Dynamically typed language. By Ayush garg T here are lots of programming languages in world. Every language follow some paradigm (A guild line follow to make program). For example c follow procedure oriented paradigm, C++ and java follow object oriented paradigm.   Similarly statically type and dynamically typed are another paradigm of programming language. Important note – sometime programmer get confuse between static or dynamic typed language and static or dynamic memory allocation. Both are totally different concept.   Static or dynamic typed language is the paradigm of programming language and static or dynamic memory allocation is all the allocation of the memory of the variable. To explain this concept I am going to use the python, C, C++, and Java language. If you don’t know these or anyone of these languages doesn’t worry consider the program as a pseudo code. So let’s begin. Statically typed language-   ...

Why we are not use “&” with cin in C++ language but use with scanf() in C language?

Why we are not use “&” with cin in C++ but use with scanf() in C? by Ayush garg Prerequisite for batter understanding – 1. basic in knowledge of polymorphism a concept of object oriented programming . 2.Basic knowledge of function  . When C programmer start studying C++ one doubt always ring in his mind why “&” not used with cin in C++ but use with in scanf() in C? In C++ program write as int a; cin>>a; C++ is the object oriented programming language and   cin is an object. Here concept of operator overloading is used. In C “>>” is called right shift bitwise operator. Here “>>” is overloaded.   When object file create   cin>>a;   Is internally converted into cin.operator>>(a) It means it is a function call. cin.operator>>(a) is function call so its definition must be present somewhere in class form which cin object belong. In C++ there are three type of function call:- 1...

What actually happen when programmer write scanf (“%d”,i) instead of scanf(“%d”,&i) in C language?

what actually happen when C programmer write scanf("%d",i) instead of scanf("%d",&i)?                                       -by Ayush garg Prerequisite for batter understanding- 1     please read why "&" is use with scanf() in C language? Some time programmer made a mistake and instead writing following code //Program 1 void main() {           int I;           scanf(“%d”,&i);           printf(“The value of i=%d”,i); } Programmer   write //program 2 void main() {           int I;           scanf(“%d”,i);           printf(“The value of i=%d”,i); } ...

Why “&” used with scanf() in C language?

Why “&” used with scanf() in C?                                                     -by Ayush garg Prerequisite for the batter understanding- 1. Basic knowledge of the pointer. 2. Basic knowledge of the function. When beginner start studying C one doubt always in his mind. Why “&” is used with scanf() in C. In C “&” called address of operator. When   “&” used with variable it always return the address of that variable and we know that when any variable declare in the program and when program run a memory allocated to it in   RAM. This allocated memory always has some address. In C we have two type of function call:- 1.     Call by value. 2.     Call by reference. Call by value- In call by value the value inside the variable is passed. By using call by value we are not ab...

Why the actual space of the pen drive is less then specified memory

Why the actual space of the pen drive is less then specified memory By - Ayush Garg  We all know that computer is the digital device and the digital device work on the binary number system (0 and 1). As we know digital system works on binary system. In the binary world following unit and there conversions are used.  Units :-                                                                                  1 byte (B)             = 8 bit (b)  1 kilobyte (KB)    = 1024 byte (B)  1 megabyte (MB) = 1024 kilobyte (KB)    = 1,048,576  byte (B)  1 gigabyte (GB)   = 1024 megabyte (MB) = 1,073,741,824  byte (B)    1 terabyte (TB)     = 1024 gigabyte (...

Algorithm and pseudo code. Difference between algorithm and pseudo code.

Algorithm and pseudo code. difference between algorithm and pseudo code . -By Ayush garg What is algorithm ? Definition : It is the stepwise representation of any problem.  Algorithm is used to represent solution of any problem in the well defined manner.  Algorithm is the way to express the logic of any problem. It is the language independent. It means there is no specific syntax to write the algorithm so it is not used in the system to develop the software but is the human understandable so that any programmer implemented it easily.  Algorithm is in the specific order of step. It means that you must write the step in algorithm in the specific order and step must be a well defined because programmer are implement this  algorithm to develop the software .Well specific order  and well define step make it easily understandable .It is written in the human friendly language(generally in the English language). By using the algorithm any programm...