From ab720691bfa664023f31af2d914103ae4efa09ef Mon Sep 17 00:00:00 2001 From: WongChinWee <93850449+WongChinWee@users.noreply.github.com> Date: Mon, 4 Apr 2022 14:08:09 +0800 Subject: [PATCH] Update exercise3.c //documentation section /* Exercise 3 - 2D array */ //pre-processor section #include //global variable section //main function section int main(){ //write here your program char myAlphabet[3][3] = {{'h','g','f'},{'c','n','p'},{'o','m','q'}}; printf("Character from Row 3 and Column 3 is %c", myAlphabet[2][2]); return 0; } //user-defined section --- exercise3.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/exercise3.c b/exercise3.c index d2f87eb..01c4cb1 100644 --- a/exercise3.c +++ b/exercise3.c @@ -9,11 +9,17 @@ //main function section int main(){ + //write here your program + char myAlphabet[3][3] = {{'h','g','f'},{'c','n','p'},{'o','m','q'}}; + + printf("Character from Row 3 and Column 3 is %c", myAlphabet[2][2]); + + return 0; } -//user-defined section \ No newline at end of file +//user-defined section