#include <stdio.h>

int main()
{const int a = 3, b = 4;
    int c[a][b] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 };

    int* ptr = *c;

    printf("\n%u", ptr); //713549104

    printf("\npointing to 2nd row=%u", ptr + 2); //713549112

    printf("\n1st element in 2nd row=%u", *(ptr + b)); // 5

    printf("\n3rd element in 2nd row=%u", (*(ptr + b) + 2)); //OUTPUT 7

    printf("\ncontent available in 2nd row, 3rd column=%u \n", ptr[b + 2]); //7
    
    for (int i = 0; i < a ; i++){
    	printf("\n");
    	for (int j = 0;j < b;j++)
    		printf("%2u ", *(ptr + i * b + j));
    }
}