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
The unconditional jumps in a written program in assembler language are specified by the jmp instruction; a jump is to moves the flow of the execution of a program by sending the co

what is the sql command to List all the join conditions or join paths (pairwise) existing between tables.

Question 1 What is role playing game? Explain the special design issues for sports games Question 2 What do you mean by collusion? Explain its types Question 3 Wri

External interruptions are produced by peripheral devices, for example keyboards, printers, communication cards, etc. They are also produced by coprocessors. It is not achievable t

Is IT a strategic weapon or a survival tool? Discuss.

i have attached all files in zip folder, all files are given and act as headers, all what you need to work on: oaa.h "partially given" , wordbench2.h "needed", wordbench2.cpp "nee

-(9/14)log2(9/14)-(5/9)log2(5/9) calculate with solution.

UNIX Shell and History feature. 1.Creating a child process. 2.Creating a history feature. Its exactly "programming project 1 - Unix Shell and History Feature (p.157-159)" in the Si

What is CAI? Explain its pitfalls

Question 1 How PHP works? Explain the structure of PHP Question 2 Write a note on links and webs Question 3 Explain why do you need Document Type Definition (DTD)?