Playing With Characters

  • + 0 comments

    include `

    > 
    > > #include <string.h>
    > > #include <math.h>
    > > #include <stdlib.h>
    > > 
    > > int main() 
    > > {
    > >     char ch;
    > >     char s[99];
    > >     char sen[99];
    > >     scanf("%c",&ch);
    > >     printf("%c\n",ch);
    > >     scanf("%s",&s);
    > >     printf("%s\n",s);
    > >     fgets(sen,50,stdin); 
    > > 	  printf("%s",sen);
    > >      
    > >     return 0;
    > > }
    > > 
    > > 
    > ```
    

    How is this supposed to be not correct??? Why in the world do we need to use their way only???