Professional Documents
Culture Documents
Activity#2 Logic Tracing Pointers Function Arrays Programming 2
Activity#2 Logic Tracing Pointers Function Arrays Programming 2
NAME Inday, Rey Adrian R. Yr. & Sec. BSIT 1 - 2 DATE: April 25, 2021
#include<conio.h>
#include<stdio.h> *pb = 25 + 25 50
a = 50 + 10 60
void main() pa = pb;
{ int a, b=25; *pa = 60 + 50 110
int *pa, *pb = 25;
// clrscr(); OUTPUT:
*pb = b + 25;
a = *pb + 10;
pa = pb;
*pa = a + b;
printf(“\n%d %d %d”, *pa, *pb, b);
printf(“\n \n %x %x %x”, pa, pb, &b);
getch();
}
B.
int CCMIT( int r, int s, int t ) m=9
{ int u ; j = 26
u = r + s – t;
k = 17
return u; }
Suppose each integer occupies 2 bytes of memory. If the the value assigned to a
begins at hexa address FICA8 and the value assigned to b begins at hexa address
CAFE6, then