as is shown at the following code. are those two statement as safe as each other?
Code:char c[20]; scanf( "%19s", c ); fgets( c, sizeof(c), stdin );
as is shown at the following code. are those two statement as safe as each other?
Code:char c[20]; scanf( "%19s", c ); fgets( c, sizeof(c), stdin );