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

C-Programming: Data and Its Type

Rating
-
Sold
-
Pages
37
Uploaded on
20-10-2023
Written in
2023/2024

"C Programming and Data Structure IITkgp Lec_notes" is a valuable educational resource provided by the prestigious Indian Institute of Technology Kharagpur (IIT Kharagpur). This title offers a comprehensive insight into the world of C programming and data structures, covering a wide range of topics crucial for computer science and engineering students. With a focus on high-quality lecture notes, this resource is designed to enhance the learning experience and help students grasp the intricacies of C programming and data structure implementation. Whether you are a student looking to excel in your academic pursuits or an enthusiast interested in deepening your knowledge, these lecture notes provide a solid foundation in two critical areas of computer science. By engaging with this resource, you can gain valuable insights and enhance your skills for future endeavors in the field of programming and data structures.

Show more Read less
Institution
Course

Content preview

' $
PDS: CS 11002 Computer Sc & Engg: IIT Kharagpur 1




Data and Its Type




& %
Lect 3 Goutam Biswas

, ' $
PDS: CS 11002 Computer Sc & Engg: IIT Kharagpur 2




Name and Location


• Data is stored in the memory.
• In a machine instruction, a memory location
is identified by its address.
• In a high-level languagea a location is
identified with a name, called a variable. A
variable is bound to a memory location.
a Imperative programming language e.g. Fortran, Algol, Pascal, C, C++ etc.

& %
Lect 3 Goutam Biswas

, ' $
PDS: CS 11002 Computer Sc & Engg: IIT Kharagpur 3




Name and Location


• Data can be read from a memory location
and a memory location can also be updated.
• This facility is made available in a high-level
language by using a variable as an expression
and making an assignment to a variable.


& %
Lect 3 Goutam Biswas

, ' $
PDS: CS 11002 Computer Sc & Engg: IIT Kharagpur 4




Types of Data


• There can be data of many different types
e.g. whole numbers, integers, rational
numbers, real numbers, complex numbers,
vectors, matrices, characters etc.
• In the machine hardware everything is
encoded as strings of binary digits (0 and 1)
of finite lengths.
& %
Lect 3 Goutam Biswas

Written for

Institution
Course

Document information

Uploaded on
October 20, 2023
Number of pages
37
Written in
2023/2024
Type
Class notes
Professor(s)
Goutam biswas
Contains
Lecture 3

Subjects

$4.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
shubhjaiswal

Get to know the seller

Seller avatar
shubhjaiswal Teachme2-tutor
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
2 year
Number of followers
0
Documents
48
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