Data type, Basic Computer Science

Assignment Help:

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.  

 


Related Discussions:- Data type

Visual basics, Assume that s is a string variable  that is supposed to con...

Assume that s is a string variable  that is supposed to contain a value to be converted to integer. Write a fragment of code that converts the value to integer variable  and displ

Diffrence Between FAT 32 And NTFS.., Dear sir please define what is the dif...

Dear sir please define what is the difference between FAT 32 and NTFS .

Database, #after writing the script of rebuilting indexed on db server it g...

#after writing the script of rebuilting indexed on db server it gave output command executed succesfully does this mean i m done

Excell, grades computation

grades computation

Explain the important features of creational patterns, Question 1 Explain ...

Question 1 Explain the role of object oriented designers in developing a software system Question 2 What are the four essential elements of design patterns? Explain Question 3

Dbms, Explain displaying an er schema as an er diagram, Database Management...

Explain displaying an er schema as an er diagram, Database Management System

What is computer, how to use computer and how we can manage it

how to use computer and how we can manage it

Geometric mean - algorithm, The geometric mean is obtained by multiplying a...

The geometric mean is obtained by multiplying all the four numbers and taking the fourth root of the product. Let x 1 ,x 2 ,x 3  and x 4  be the given four numbers then geometric

Classify computer system according to capacity, classify computer system ac...

classify computer system according to capacity. how they are different from computer according to the classification of technology.provide the comparative study also.

Port in a computer, what is the need of a port in a computer?

what is the need of a port in a computer?

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd