Question: The following code, A and B are constants defined with #define: typedef struct { i int x [ A ] [ B ] ; /
The following code, A and B are constants defined with #define:
typedef struct i
int xAB; Unknown constants A and B
long y;
str;
typedef struct
char arrayB;
int t;
short sA;
long u;
str;
void setValstrp strq
long v q t;
long v q u;
p y vv;
gcc generates the following code for setVal:
void setValstrp strq
p in rdi, q in rsi
setVal:
movslq rsirax
addq rsirax
movq rax, rdi
ret
What are the values of A and B
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
