Novice C language learning journey(3) by sky-999

View this thread on steempeak.com
· @sky-999 · (edited)
Novice C language learning journey(3)
![梦幻光晕蓝色背景矢量图.png](https://cdn.steemitimages.com/DQmeWGa19sY4X6wLEcCrmGeR1RAM1emGEyft1vytQcnqxVo/%E6%A2%A6%E5%B9%BB%E5%85%89%E6%99%95%E8%93%9D%E8%89%B2%E8%83%8C%E6%99%AF%E7%9F%A2%E9%87%8F%E5%9B%BE.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](https://cdn.steemitimages.com/DQmPNbhZndS4hNmMJrLntKq1C89GqFBwoMvArM1HQizsKjA/%E6%8D%95%E8%8E%B7.PNG)
![捕获1.PNG](https://cdn.steemitimages.com/DQmZ4opg417uqZdzS2hzhQDsFCPajbUkBoxckgZJyGXjzFP/%E6%8D%95%E8%8E%B71.PNG)
👍  , , , , , , , , ,
properties (23)
post_id84,323,868
authorsky-999
permlinknovice-c-language-learning-journey-3
categoryart
json_metadata{"tags":["introduceyourself","steem","technology","science","include"],"image":["https:\/\/cdn.steemitimages.com\/DQmeWGa19sY4X6wLEcCrmGeR1RAM1emGEyft1vytQcnqxVo\/%E6%A2%A6%E5%B9%BB%E5%85%89%E6%99%95%E8%93%9D%E8%89%B2%E8%83%8C%E6%99%AF%E7%9F%A2%E9%87%8F%E5%9B%BE.png","https:\/\/cdn.steemitimages.com\/DQmPNbhZndS4hNmMJrLntKq1C89GqFBwoMvArM1HQizsKjA\/%E6%8D%95%E8%8E%B7.PNG","https:\/\/cdn.steemitimages.com\/DQmZ4opg417uqZdzS2hzhQDsFCPajbUkBoxckgZJyGXjzFP\/%E6%8D%95%E8%8E%B71.PNG"],"app":"steemit\/0.1","format":"markdown"}
created2020-02-12 15:36:42
last_update2020-02-12 15:59:36
depth0
children4
net_rshares36,350,119,152
last_payout2020-02-19 15:36:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length796
author_reputation219,898,477,375
root_title"Novice C language learning journey(3)"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (10)
@esteemapp ·
Welcome sky-999! <br>**eSteem** is mobile and desktop application that improves your experience on Steem. <br><br>Download [Android](https://play.google.com/store/apps/details?id=app.esteem.mobile.android) and [iOS](https://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=1451896376&mt=8) apps. [Surfer Desktop](https://github.com/esteemapp/esteem-surfer/releases) application that helps you to gain new followers and stay connected with your friends, unique features - notifications, bookmarks, favorites, drafts, and more. <br> We reward our users with encouragement upvotes as well as ESTM token. <br>Learn more: https://esteem.app <br>Join our discord: https://discord.me/esteem
👍  
properties (23)
post_id84,323,898
authoresteemapp
permlinkre-2020212t16388106z
categoryart
json_metadata{"tags":["esteem"],"app":"esteem\/2.2.2-welcome","format":"markdown+html","community":"esteem.app"}
created2020-02-12 15:38:09
last_update2020-02-12 15:38:09
depth1
children0
net_rshares735,132,923
last_payout2020-02-19 15:38:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length693
author_reputation396,075,316,369,469
root_title"Novice C language learning journey(3)"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@steemitboard ·
Congratulations @sky-999! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

<table><tr><td><img src="https://steemitimages.com/60x70/http://steemitboard.com/@sky-999/votes.png?202002121747"></td><td>You distributed more than 10 upvotes. Your next target is to reach 50 upvotes.</td></tr>
</table>

<sub>_You can view [your badges on your Steem Board](https://steemitboard.com/@sky-999) and compare to others on the [Steem Ranking](https://steemitboard.com/ranking/index.php?name=sky-999)_</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>


To support your work, I also upvoted your post!


###### [Vote for @Steemitboard as a witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1) to get one more award and increased upvotes!
👍  
properties (23)
post_id84,331,293
authorsteemitboard
permlinksteemitboard-notify-sky-999-20200212t182623000z
categoryart
json_metadata{"image":["https:\/\/steemitboard.com\/img\/notify.png"]}
created2020-02-12 18:26:21
last_update2020-02-12 18:26:21
depth1
children0
net_rshares735,132,923
last_payout2020-02-19 18:26:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length889
author_reputation38,705,954,145,809
root_title"Novice C language learning journey(3)"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@tuanis ·
Welcome
**Welcome to steemit @sky-999.**
- Join @minnowsupport project for more help
- Checkout @helpie for daily trivias and useful information
- Join @qurator a good quality support project
- Checkout @steembasicincome
- Help us save the forest with @treeplanter

Welcome the new steemians. Have a great day!
👍  
properties (23)
post_id84,333,869
authortuanis
permlinkre-sky-999-novice-c-language-learning-journey-3-20200212t193106000z
categoryart
json_metadata{}
created2020-02-12 19:31:06
last_update2020-02-12 19:31:06
depth1
children0
net_rshares719,441,169
last_payout2020-02-19 19:31:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length302
author_reputation6,245,332,363,330
root_title"Novice C language learning journey(3)"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)