Koleksi Kode Sumber C (12) : Membaca dan Menampilkan String

[sourcecode language=”cpp”]
#include<stdio.h>
int main(void)
{
char st[100];
printf("Masukkan sebaris kalimat apa saja : ");
gets(st); /*TIDAK DIREKOMENDASIKAN */
printf("%s \n",st);
return 0;
}
[/sourcecode]

Be the first to comment

Leave a Reply

Your email address will not be published.


*