0% found this document useful (0 votes)
17 views

32 Bit and 64 Bit Processor

Here are the answers to your questions: 1. The basic difference between signed and unsigned integer types is that signed integers can represent both positive and negative numbers, while unsigned integers can only represent numbers from 0 to their maximum value. 2. Signed characters can represent both positive and negative values using their ASCII codes, while unsigned characters can only represent ASCII codes from 0 to their maximum value. 3. Float stores numbers with single-precision, double stores with double-precision and long double stores with extended precision. Float has less precision than double, and long double has more precision than double. 4. The void data type is used to specify functions that do not return a value. It indicates that the function does not return

Uploaded by

Maruf Ahmed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

32 Bit and 64 Bit Processor

Here are the answers to your questions: 1. The basic difference between signed and unsigned integer types is that signed integers can represent both positive and negative numbers, while unsigned integers can only represent numbers from 0 to their maximum value. 2. Signed characters can represent both positive and negative values using their ASCII codes, while unsigned characters can only represent ASCII codes from 0 to their maximum value. 3. Float stores numbers with single-precision, double stores with double-precision and long double stores with extended precision. Float has less precision than double, and long double has more precision than double. 4. The void data type is used to specify functions that do not return a value. It indicates that the function does not return

Uploaded by

Maruf Ahmed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 11

32 bit and 64 bit Processor

•  A 32-bit system can access 232 (4,294,967,296) memory addresses.


• A 64-bit machine could theoretically access 18,446,744,073,709,551,616
memory addresses.
• 32-bit is a type of CPU that can transfer 32 bits of data per clock cycle while
64-bit is a type of CPU that can transfer 64 bits of data per clock cycle.
• While many 32-bit programs can run on a 64-bit operating system (OS), 64-
bit programs are not compatible with 32-bit operating systems.
• Windows 95, 98, and XP are all 32-bit operating systems.
• Windows Vista, Windows 7, and Windows 8 also come in 64-bit versions.
• Clock cycle: amount of information that the CPU can process every time it
performs an operation
32 bit and 64 bit Processor
‘’The largest integer value that can be stored is
machine-dependent’’- Why?
Qualifiers
• The largest integer value that can be stored is 32767 on 16-bit machines and
2147483647 on 32-bit machines.
• It is also possible to store larger integer constants on these machines by
appending qualifiers such as U,L and UL to the constants.
• Examples:
56789U
987612347UL
9876543L
Program 2.1: Representation of Integer Constants on a 16-bit computer
#include<stdio.h>
void main()
{
printf("Integer values\n\n");
printf("%d %d %d\n", 32767,32767+1,32767+10);
printf("\n");
printf("Long integer values\n\n");
printf("%ld %ld %ld\n", 32767L,32767L+1L,32767L+10L);
}
Output
Integer values
32767 -32768 -32759
Long integer values
32767 32768 32777
Backslash Character Constant
• C supports some special backslash character constants that are used in output functions.
• For example, the symbol \n stands for newline character
Variable: Rules for naming variables:
• In programming, a variable is a container (storage area) to hold data.
• Variable names are just the symbolic representation of a memory location.

1. Variable must begin with a letter. It must not start with a digit.
2. In naming variables, alphabetic character a-z, A-Z, digit (0-9) and underscore
( _ ) can be used. Except underscore, other special character can’t be used.
3. There must not have any blank space in a variable name.
4. Uppercase and lowercase are significant in naming variable.
5. Keywords can not be used as variables.
6. Any number of character is allowed in naming variable. However, ANSI
standard recognizes a length of 31 character. Normally 8 character is
preferable.
List of Characters in C programming
Data Types
Primary or Fundamental Data types
Assignments
• What is the basic difference between signed and unsigned
type integer?
• What is the basic difference between signed and unsigned
type character?
• What is the basic difference among float, double, long
double data type?
• Define void data type.

You might also like