Exit EN0-001 ARM Accredited Engineer
Question 4 of 5
0% complete
Q4 Single choice

According to the AAPCS (with soft floating point linkage), when the caller "func" calls sprintf, where is the value of the parameter "x" placed?

#include <stdio.h>

void func(double x, int i , char *buffer)

{

sprintf(buffer, "pass %d: value = %f\n", i, x); }

  • A

    Split between register R3 and 4 bytes on the stack

  • B

    Split between registers R3 and R4

  • C

    8 bytes on the stack

  • D

    VFP Register D0