Posts

Quantam computing

  A Complete Beginner-Friendly Guide Quantum computing is one of the most exciting and powerful technologies of our era. While classical computers use bits (0 or 1), quantum computers use qubits—tiny particles that follow the rules of quantum physics. These qubits can be 0, 1, or both at the same time. This strange but fascinating behavior makes quantum computers unbelievably fast for specific tasks. In this full-length blog post, you’ll learn what quantum computing is, how it works, why it’s revolutionary, and where it’s headed in the future.  What Is Quantum Computing? Quantum computing is an advanced approach to computation that uses the principles of quantum mechanics—the science of atoms and particles. Unlike traditional computers that process information line by line, quantum computers can perform many calculations simultaneously. This allows them to solve problems that would take classical computers thousands of years.  Key Concepts in Quantum Computing 1. Qubits B...

Introduction of Computer

Image
 What is Computer : Computer is an electronic device which is used to store the data, as per given instructions it gives results quickly and accurately. • Data: Data is a raw material of information • Information: Proper collection of the data is called information Characteristics Of Computer • SPEED : Computer is very fast calculating device. It can execute basic operations  like subtraction, addition, multiplication and division at a few microseconds. It can  move and copy data at a speed in the order of billion instruction per second. • ACCURACY : Computer always gives accurate results. The accuracy of Computer  does not go down when they are used continuously for hours together. It always gives accurate results. • STORAGE CAPACITY : Computers have a very large storage capacity. A large  volume of information can be stored in the memory of computer and information can  be retrieved correctly when desired. • VERSATILITY : The working of computer with diff...

Input/output Statements and Operators

 Reading data from input device and displaying the result on the screen are the two main tasks of any programming. In ‘C’ language the input output operations are carried out by using standard functions. The programs for these functions are kept in the file. This file must be included in the program to use these functions using the preprocessor directive as: #include<stdio.h> The i/o functions are classified into 2 types: 1) Formatted functions 2) Unformatted functions. Formatted input output function The formatted I/O functions read and write all data values.  Formatted Input: Scanf(): This formatted input function which read the data from the standard input into variable in different formats by the user. Syntax:  Input single value from user scanf(“ control string”, &args);  Input multiple values scanf(“ control string”, &arg1, &arg2, …. ,&argn); Example:  Input single value from user int no; scanf(“%d” ,&no);  Input multiple value float no 1; int n...

Data types:

C language is rich in its data types. ANSI supports three classes of data types. 1) Primary or fundamental data types. 2) Derived Data types. 3) User-defined data types. 1) Fundamental Data types: All C compilers support five fundamental data types.  Integer (int)  Character (char)  Floating point (float)  Double-precision point (double)  Void i. Integer types: Integer types are whole numbers with a range of values supported by particular machine. If we use a 16 bit word length, the size of the integer value is limited to the range -32768 to +32767. C has three classes of integer storage namely  Short int  Int  Long int Short int represents small values than int and int represents small value than long int. or we can say that Short int < int < long int  Here 1 byte = 8 bits.  Signed int is able to represent negative values.  Unsigned int can represent non-negative values (positive values). ii. Floating point types:  Floating point numbers are stored in 32 bits, with 6...

Character Set

The various categories of characters are called the character set. In C, the characters are grouped into the following categories: a) Letters: a. Uppercase: A………….Z b. Lowercase: a…………..z b)Digits: a. All digits: 0…………..9 c) Special Characters, such as a. , Comma b. . Period c. ; Semicolon d. : Colon Tokens in C is the most important element to be used in creating a program in C. We can define the token as the smallest individual element in C. C tokens are the basic building blocks in C language which are constructed together to write a C program. C token are of six types. o Keywords (eg. int, while) o Identifiers (eg. main, total) o Constants (eg. 10, 20) o Strings (eg. “total”, “heta”) o Special Symbols (eg. (), { }) o Operators (eg. +, -, *, / ) Keyword and Identifier In 'C' every word can be either a keyword or an identifier. Keywords: Keywords have fixed meanings, and the meaning cannot be changed. They act as a building block of a 'C' program. There are a total of...

Compiler and Interpreter

 A program written in a high level language. A high level languageis only understood by humans. It generally contains phrases From english language, but computer cannot understand high-level language. Computer can only understand program written in 0‟s and 1‟s in binary, called the machine code. A program written in high-level language is called a source code. Source code must be translated into machine language before it can be executed.  So we need to call the source code into machine code and this is accomplished by compiler and interpreters. Compiler or an interpreter is a program that converts programs written in high-level language into machine code understood bythe computer. Compiler or interpreter is a computer program that accepts high-level program (e.g. C Program) as input data and generation program as output.   The original high-level program is called the source program and resulting machine-language program is called the object program. The difference ...

Computer Programming & Programming Methodology

  Computer Programming & Programming Methodology Unit- 1 Introduction A computer cannot perform any task of its own and can only understand its own language which is the language of 0’s and 1’s that means binary number system, therefore a computer user has to communicate with a computer using the language which they can understand. The set of instructions to perform a task in the computer that is known as a program and the computer languages in which programs are written is knownas programming language. The person developing or writing programs isknown as  “programmer” . A computer cannot understand the natural language like English. Examples of programming languages are C, C++, C#, Perl, Java, etc. Introduction to C Programming History of C Programming  C is a programming language which was developed at “AT & T’s Bell  Laboratory” of USA in 1972.  C was written by Dennis Ritchie, that‟s why he is also called as father of  C Programming language.  C was cr...