Question: In the following code, A and B are constants defined with #define 1typedef struct [ 2 int x[A] [B]; / Unknown constants A and B*/

 In the following code, A and B are constants defined with

In the following code, A and B are constants defined with #define 1typedef struct [ 2 int x[A] [B]; / Unknown constants A and B*/ long y; 6 typedef struct f char array [B]; int t; short s LA]; long u; 10 11str2; 12 13 void setVal (stri *p, str2 *q) [ 14 15 16 17 long v1 = q->t; long v2 q-u ; GCC generates the following code for the body of setVal: void setVal (stri *p, str2 *g) p in %rdi, q in %rsi 1 setVal: movs1q addq 8(%rsi), %rax 32(%rsi), %rax %rax , 184 (%rdi) movq ret What are the values of A and B? (The solution is unique.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!