^^^ Definitely!
scanf() is for formatted input, not user input. It's just used for user input while a student is getting started.
I'm sure fgets() should be used more, even in such classes...
Type: Posts; User: Adak
^^^ Definitely!
scanf() is for formatted input, not user input. It's just used for user input while a student is getting started.
I'm sure fgets() should be used more, even in such classes...
Try this one:
#include <stdio.h>
int main(void) {
int i=0;
char myarray[80];