You are given a struct SensorData containing three integer fields: x, y, and z.
struct SensorData
x, y, and z.
You are also given a global pointer:
const int* ptr = nullptr;
Write a function print_data that:
SensorData
d.x = 99
x y z
You must write only the correct function parameter signature and implementation.
Example
Input:
3 4 5
Output:
Constraints:
print_data
d.x = 99;
ptr
data.x
Test Cases
Test Results
Input
Expected Output