Skip to main content

Short note in Symbolic constant and Deeclaration of variables.

 Symbolic Constant 

            Symbolic constant are the name given to constant values that can not be changed during the executions of the program like. Generally  these are defined with the help of # defined statements in the definition section of the program. 

            e.g        #include<stdio.h>

                         #include<conio.h>

                            #define PI    4.15

                main()

        {

            ___________

            ___________

        }

    Now in the execution wherever compiler will find the symbolic constant  PI in the statements it will replace PI with 4.15 automatically.

Declaration of variables :-

            A variables is used to hold data within your program. A variables represents a location in your computer's memory. You can put data into this location and retrieve data out of it. Every variables has two parts, a name and a data type.

  1. It defines the name of the variables.
  2. It defines the type of the variables (integer, real, character, etc).
  3. It gives the programmer a description of the variable

              int answer;                                 /* the result of our expression*/     

            The keyword int tells C that this variables contains an integer value.

            The variables name is answer.

            The semicolon (;) marks the end of the statement. 

            The comment is used to define this variables for the program.                                                                     


Comments

Popular posts from this blog

What is Computer science

Introduction        A computer is a electronic machine. A completely computer  including the hardware, the operating system, and peripheral equipment required and used for full operations can be referred to as a computer system. This term may as well be used for a group of in particular a computer network or computer cluster and computer that are connected and work together. And this computer have the ability to follow general sets of operations is called program and computer is a machines that can be instructed carry out sequences of arithmetic or logical operations automatically via computer programing.                     computer are used as control systems for a wide variety of industrial and consumer devices. The internet is run on computers and it connects hundreds of millions of other computer and their user. this Includes simple special purpose devices like microwave ovens and remote ...

Explain the Super Computer

 A supercomputer may be a computer with a high level of performance as compared to a general purpose computer. Super computer play a crucial role within the field of computational science and are used for a good range of computationally intensive tasks in various fields, including quantum physics, meteorology, climate research, oil and gas exploration, molecular modeling and physical simulations. They need been essential within the field of cryptanalysis.          Since 2017, there are supercomputers which may perform over 1017 FLOPS. Since November 2017 all of the world's fastest 500 supercomputers run Linux-based operating system. Additionally research is being conducted within the ecu Union, within the us, Taiwan, Japan and china to create faster, more powerful and technologically superior exabytes supercomputer supercomputer ewer introduces worthen the 1960s, and for several decades the fastest ere made by Seymour Cray at control  Data Cu...

What is Graphics processing unit? How to work Graphics processing unit.

  INTRODUCTION GPU ( Graphics Processing Unit)     GPU is the Graphics Processing Unit. A GPU may be a processor designed to handle graphics operations. This includes both 2D and 3D calculation, though GPUs primarily shine at rendering 3D graphics. Allocation built into the cardboard, which is reserved exclusively for graphical operations. Some particularly advanced PCs will even use two GPUs attached two GPUs attached together to supply even more processing power.      Laptops, meanwhile, often carry smaller mobile ships, which are smaller and fewer powerful than their desktop counterparts. This allows them to suit an otherwise bulky GPU into a smaller chassis, at the expense of a number of the raw performance offered by desktop cards. Uses of GPUs     GPU are most ordinarily wont to drive high-quality gaming experiences, producing life-like digital graphics and super-silck rendering. How ever, there also are several business appli...