C Programming! (42) The gets() and puts() Functions

Sdílet
Vložit
  • čas přidán 9. 09. 2024
  • PIEAS (Pakistan Institute of Engineering and Applied Sciences)

Komentáře • 1

  • @chungfup1493
    @chungfup1493 Před 4 lety

    Why did the scanf command ("% d \ n") not have the command drift, when using gets
    #include
    int main(){
    char a[10],b[20];
    scanf("%s
    ",a);
    gets(b);
    printf("%s,%s",a,b);
    }
    Thank you.