From ab5ee7221b436687dd3765aed2d2333b7b124f08 Mon Sep 17 00:00:00 2001 From: WongChinWee <93850449+WongChinWee@users.noreply.github.com> Date: Mon, 4 Apr 2022 14:09:18 +0800 Subject: [PATCH] Update exercise2.c //documentation section /* Exercise 2 - 1D array */ //pre-processor section #include //global variable section //main function section int main(){ char myName[100] = {"Wong"}; //write here your program printf("My Name is %s, Bachelor of Information Technology from Universiti Malaysia Kelantan", myName); return 0; } //user-defined section --- exercise2.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/exercise2.c b/exercise2.c index 1c28eb7..5af4883 100644 --- a/exercise2.c +++ b/exercise2.c @@ -9,11 +9,18 @@ //main function section int main(){ + char myName[100] = {"Wong"}; + + //write here your program + printf("My Name is %s, Bachelor of Information Technology from Universiti Malaysia Kelantan", myName); + + return 0; } -//user-defined section \ No newline at end of file +//user-defined section +