Data type, Basic Computer Science

Data Type:

 Data Type: Anything that is processed by a computer is called data. There are different types of data that can be given to the computer for processing. A  data type is a classification identifying the typeof data.  It determines the   

  • Possible values for that type,   
  • Operations that can be performed on values of that type,   
  • The way values of that type can be stored in memory,  

In each programming language there are some primitive data types. For example in the C programming language they are:  Please note that these sizes can be compiler or machine dependent in the case of this language.  For other languages such as Java, the sizes are defined by the language itself.   

  • int, both signed and unsigned integers,  2 bytes in size.    
  • float, floating point numbers, up to 4 bytes in size.    
  • double, floating point number with double precision. These are organized in  8 bytes (64 bits)    
  • char, character type  size of 1 byte (8 bits)  It is used to form the strings i.e sequence of characters.  

 

Posted Date: 10/23/2012 3:48:38 AM | Location : United States







Related Discussions:- Data type, Assignment Help, Ask Question on Data type, Get Answer, Expert's Help, Data type Discussions

Write discussion on Data type
Your posts are moderated
Related Questions
Types of Search Engine:   Some of the basic categories of Search engines are :  a. Primary Search Engines: Such search engines use web crawlers or spiders to traverse the w

If you have to consider the installation of communications packages, the same questions have to be asked. (a) Does the software and the modem support the necessary transmission

4. Union City Al has decided to upgrade their tornado warning system. The city leaders have identified six potential locations for erecting a warning siren tower. They want to e

QUESTION (a) Given the graph as shown in figure, apply Lagrangian technique to complete the table assuming μ=1 and T=14                        Path P

Input and Output device: After having understood the characteristics relating to CPU and storage media, let us try to learn about I/O aspects of a computer system. Input /outp

Advantages and Disadvantages of E-Learning: Before we discuss about advantages and disadvantages of e-learning, you should know that e-learning is just another model for learn

ATM = Asynchronous Transfer Mode Fast packet switching and multiplexing technology (cell-based ) Support the universe of services voice, video and data traffic Provides quality of

Function: The purpose of a function is to take in a number of values or arguments, do some calculations with those arguments and then return a single result.  Each language has d

Project Setting up Microsoft Word 2010 to automatically handle as much as possible of the NDSU Graduate School requirements for a disquisition. Accessible from the Graduate Schoo

Mike sells on the average 15 newspapers per week (Monday – Friday). Find the probability that 2.1 In a given week he will sell all the newspapers