Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

ICT Programing C

Rating
-
Sold
-
Pages
3
Uploaded on
01-05-2022
Written in
2021/2022

These are notes that will aid in having more knowledge in ICT programing

Institution
Course

Content preview

INTEGRAL TYPES

The real types were the easy ones. The rules for the integral types are
more complex but still tolerable, and these rules really should be
learned.
Each programming language has in-built types to distinguish
between the nature of various data (input or output or intermediate).
Integer is a common data type which is extensively used in general
programming and in scientific computing.
Fortunately, the only types used in C for routine data storage are the
real and integer types, or structures and arrays built up from them.
C doesn't have exceptional types for character manipulation or the
handling of logical (boolean) quantities but uses the integral types
instead.
In C programming language, integer data is represented by its own
datatype known as int. It has several variants which differs based on
memory consumption includes:

 int
 long
 short
 long long


The minute you know the rules for the reals and the integers you
know them all. We will start by looking at the various types and then
the conversion rules.

PLAIN INTEGERS

int
 Integers are whole numbers that can have both zero, positive and
negative values but no decimal values. For example, 0, -5, 10
 We can use int for declaring an integer variable.


 There are two types (often called ‘flavors’) of integer variables.

 Additional types can be built from these, as we'll see, but the plain
undecorated ints are the base. The most obvious of the pair is the
‘signed’ int, the less obvious is its close relative, the unsigned int.

 These variables are hypothetically to be stored in whatever is the
most convenient unit for the machine running your program. The int is

Written for

Course

Document information

Uploaded on
May 1, 2022
Number of pages
3
Written in
2021/2022
Type
Class notes
Professor(s)
Justus ngare
Contains
College and university

Subjects

$7.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
Mnyazi

Get to know the seller

Seller avatar
Mnyazi Freelancer
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
4 year
Number of followers
0
Documents
119
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions