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

A magazine publisher based in Nairobi has branch in Kisumu, and one in Mombasa. The company has kept in touch by telephone and courier service. Each office is networked. The networ

draw a block diagram to show organization of a computer system .explain or a units of computer system

Develop a simple expert system to pick ten stocks to consider. Create seven or more rules that could be used in such an expert system. Create five cases and use the rules

Question 1 What are the various skills needed for broadcasting and film? Question 2 What is a 2 dimensional animations and 3 dimensional animations? Question 3 Different

wrap that computes a customer water bill. The bill include Rs.100 water demand charge + a consumption charge of Rs.1.5 for every thousand gallons used. Consumption is figured from

Ask queswhat is the advanages of eeprom?

QUESTION (a) For each of the following systems, determine whether the system is (1) stable, (2) causal, (3) linear, (4) time invariant, (5) passive (i) Y[n] = x[-n] (ii)

Input/Output Services:   Every operating system, large or small, provides input/output services for each device in the system. The operating system includes I/O device driver

explain ipx for lan and spx