Mega Code Archive

 
Categories / C / Code Snippets
 

Two-Dimensional arrays

#include <stdio.h> void main() { char t[3][3] = { {'3','5','1'}, {'2','8','9'}, {'4','5','1'} }; printf("value of t[0][0] : %c\n", t[0][0]); printf("value of t[0] : %c\n", *t[0]); printf("value of t : %c\n", **t); }