Today, We want to share with you how to read input from stdin in c.In this post we will show you fgets stdin, hear for read from stdin c Code Example we will give you demo and example for implement.In this post, we will learn about How To Convert A String To Char Array In Java? with an example.
read from stdin c
Example 1:
#includeint main( ) { char str[100]; int i; printf( "Please Enter a value :"); scanf("%s %d", str, &i); printf( "\nYou entered: %s %d ", str, i); return 0; }
I hope you get an idea about scanf in c.
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.