4 like 0 dislike
262 views

#include <stdio.h>

int main()

{

char *arr[3], str[100];

int i;

for(i = 0; i < 3; i++)

   {

printf("Enter text: ");

gets(str);

arr[i] = str;

    }

for(i = 0; i < 3; i++)

printf("Text: %s\n", arr[i]);

return 0;

         }

 

References: C From Theory

[Normal] Essay (Open question) - asked in Introduction to Computer Programming I (C) by (20.9k points)
ID: 21965 - Available when: Unlimited - Due to: Unlimited

edited by | 262 views
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.70.130.46
©2016-2024

Related questions

5 like 0 dislike
1 answer
[Normal] Essay (Open question) - asked Feb 19, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21973 - Available when: Unlimited - Due to: Unlimited
| 339 views
5 like 0 dislike
0 answers
[Normal] Essay (Open question) - asked Feb 19, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21972 - Available when: Unlimited - Due to: Unlimited
| 279 views
4 like 0 dislike
0 answers
[Normal] Essay (Open question) - asked Feb 19, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21966 - Available when: Unlimited - Due to: Unlimited
| 253 views
5 like 0 dislike
0 answers
[Normal] Essay (Open question) - asked Feb 19, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21978 - Available when: Unlimited - Due to: Unlimited
| 272 views
5 like 0 dislike
1 answer
[Normal] Essay (Open question) - asked Feb 19, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21977 - Available when: Unlimited - Due to: Unlimited
| 369 views
12,783 questions
183,443 answers
172,219 comments
4,824 users