Novice C language learning journey(3)

avatar
(Edited)

梦幻光晕蓝色背景矢量图.png
This is a two-dimensional array.The output result is different when i input "howee areee youuu" string and "how are you" string.Because the "a" array is out of bounds when i input "howee areee youuu".The code as follows:
#include"stdio.h"
int main(void){

char a[3][5];
scanf("%s%s%s",a[0],a[1],a[2]);
printf("%s\t%s\t%s\n",a[0],a[1],a[2]);
return 0;

}
捕获.PNG
捕获1.PNG



0
0
0.000
4 comments
avatar

Welcome sky-999!
eSteem is mobile and desktop application that improves your experience on Steem.

Download Android and iOS apps. Surfer Desktop application that helps you to gain new followers and stay connected with your friends, unique features - notifications, bookmarks, favorites, drafts, and more.
We reward our users with encouragement upvotes as well as ESTM token.
Learn more: https://esteem.app
Join our discord: https://discord.me/esteem

0
0
0.000
avatar

According to the Bible, Is the Bible final and complete? How does it support science? (Part 3 of 4)

(Sorry for sending this comment. We are not looking for our self profit, our intentions is to preach the words of God in any means possible.)



Comment what you understand of our Youtube Video to receive our full votes. We have 30,000 #SteemPower. It's our little way to Thank you, our beloved friend.
Check our Discord Chat
Join our Official Community: https://beta.steemit.com/trending/hive-182074

0
0
0.000
avatar

Congratulations @sky-999! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You distributed more than 10 upvotes. Your next target is to reach 50 upvotes.

You can view your badges on your Steem Board and compare to others on the Steem Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Vote for @Steemitboard as a witness to get one more award and increased upvotes!
0
0
0.000