Skip to main content

C# Tutorial , Step-5, Built in Data Types

 Hello, Welcome to all. My name is Abdul Yesdani. Today we are going to learn about built in data types of C# language.

The following list describe the C# built in types.


Integral numeric types

Type

Description / Range

bool

True or false

byte

0-255     Unsigned 8 bit integer

sbyte

-128 to 127       Signed 8 bit integer

short

-32,768 to 32,767         Signed 16-bit integer

ushort

0 to 65,535               Unsigned 16-bit integer

int

-2,147,483,648 to 2,147,483,647    Signed 32-bit integer

uint

0 to 4,294,967,295     Unsigned 32-bit integer

long

-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
Signed 64-bit integer

ulong

0 to 18,446,744,073,709,551,615
Unsigned 64-bit integer

Floating Types

float

±1.5 x 10−45 to ±3.4 x 1038             4 bytes

double

±5.0 × 10−324 to ±1.7 × 10308        8 bytes

decimal

±1.0 x 10-28 to ±7.9228 x 1028       16 bytes

Other Types

bool

Represents true or false

char

Represents a Unicode UTF-16 character.

String 

Reference a sequence of zero or more Unicode UTF-16 characters.


We can use any of above types as variable types in our program code as per need.

Example : float  price=67855.78

                  double rate_item = 4535566.89999

                   int num=8900

                   char  letter = 'T'

                  string person ="Noah"

-------------  *********************************************************-----------






Comments

Popular posts from this blog

Building a Responsive Weather App with React

 Fetching and Displaying Weather Data      By - ABDUL YESDANI Objective:  This document will help you prepare for the workshop on building a responsive weather app using React. You will learn the basics of React, how to use APIs, and how to work with data fetched from an API. By the end of the workshop, you’ll build a simple weather app that fetches real-time weather data.  1. What is React? React is a JavaScript library used to build user interfaces, especially for single-page applications. It lets you create components, which are reusable, isolated pieces of code that define a part of your user interface. Key Terms Component : Think of components as building blocks for your app. Each part of your app’s UI can be a component, like a button, form, or navigation bar. JSX : A syntax extension for JavaScript, which looks a lot like HTML. JSX is used to describe what the UI should look like. State : Data that controls what gets rendered on the screen. State ca...

Every day Hands on Exercises / Assignments

Day wise hands on exercises/ assignments Day 1: HTML Hands on Exercises Date:04-10-2021 1.Create a web page to display your name, designation, location. 2. Create a web page to show about yourself in 3, 4 paragraphs. 3. Create a web page to display some nature images and Describe those images. 4.create a web page about college anniversary celebrations Divide your page in 4, 5 div elements . In the 1st div, put the heading of college , and display other details about the college. In the second div put images of the college. In third div put details of celebrations in paragraphs In the fourth div display the guest list. Use style attribute for doing color, background color, font etc, To emphasise some special content use elements like , 5. Create a web app on Indian cultural festivals. Use semantic elements for lay out of the page. Define an external style sheet and link with the page. Your app should have indexpage, cultural page, about us page. You should navigate amon...

node.js tutorial

node.js is a open source server environment. Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine. Node.js is free,it is cross platform means runs on various platforms (Windows, Linux, Unix, Mac). Node.js uses JavaScript on the server.