Question: / / addressContentTemp 1 6 Bits.cpp / * * * * * * * * * * * * * * * * * *
addressContentTempBits.cpp
#include
#include
using namespace std;
int main
Display year and month
SYSTEMTIME a;
GetLocalTime&a;
cout "Year: awYear endl;
cout "Month: awMonth endl endl;
An bit one dimensional arr array declaration and initialization.
Pointers of PtrN will be used to store the address of
each element of the array.
A bit array mdN will be used to store size of each element
in the arr array
A bit array maddN is used to store the size of the address of
each element of the array
int const N ;
short int arrN;
short int PtrN;
index used in for loop
int i;
Display Hex value and decimal value for each element of short int array
cout endl;
cout The value of each element of bit array
endl;
for i ; i N; i
Add your code here
Find the total numbers in bytes of array arrN
cout The size information in bytes of an bit array
endl;
cout "The total numbers in bytes of an bit array with elements is:
endl endl;
Add your code here
Find the number of byte of each element of array arrN
for i ; i N; i
Display size of each element in the array in bytes
Add you code here
cout endl;
Find the address for each element in an array arrN
Store the address of each element into the array void PtrN
Add your code
Ptr arr;
Ptr
Ptr
Ptr
Ptr
Display address in hexadecimal for each element of array
cout The address of each element of bit array
endl;
for i ; i N; i
cout "The memory address of element in the array is:
Hexx hex Ptr endl;
Add your code
cout endl;
Find the number of bytes of each element of array
for i ; i N; i
Add your code
return ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
