A simple but interesting C program!

#include<stdio.h>

int main(void)
{
char str[80];
printf(“Enter a string: “);
//scanf(“%s”,str);
//gets(str);
printf((gets(str)));
return 0;
}

input:
hellow world!

output:
hellow world!

 

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s