Hello. I have the following code and I wanna to print all chars in each vector, but Idon´t know how to (line 12):
The expected value would be:
10
5678
ABCDEF
Can someone help me?
Simple vector list:
#include <stdio.h>
const int messageOne[] = {0x31, 0x30};
const int messageTwo[] = {0x35, 0x36, 0x37, 0x38};
const int messageTree[] = {0x41, 0x42, 0x43, 0x45, 0x44, 0x54};
const int **messageList = {messageOne, messageTwo, messageTree};
const int vectorSize = (sizeof(messageList) / sizeof(messageList[0]));
int main() {
for (int i = 0; i <= vectorSize; i++) {
for (int j = 0; j <= sizeof(messageList) / sizeof(messageList[0]); j++) {
printf("%d %d %c ", i, j, messageList);
}
printf("\n");
}
return 0;
}
10
5678
ABCDEF
Can someone help me?
Last edited:
