50008. Pointer Chasing

難度:2/5

setmatrix.c

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <stdio.h>
#include <stdbool.h>
#include "setmatrix.h"

void processSetMatrix(int ***ptr) {
bool flag = true;
for(int ***a = ptr; *a != NULL; a++){
for(int **b = *a; *b != NULL; b++){
for(int *c = *b; *c != 0; c++){
if(flag){
flag = false;
printf("%d", *c);
}
else{
printf(" %d", *c);
}
}
}
}
printf("\n");
}

setmatrix.h

1
void processSetMatrix(int ***ptr);

50008. Pointer Chasing
https://aaronlin1229.github.io/judgegirl_50008/
Author
Akizumi
Posted on
July 17, 2023
Licensed under