Write a Program to Display your name in C [ 3 Different Methods ]

Поділитися
Вставка
  • Опубліковано 18 жов 2024

КОМЕНТАРІ • 5

  • @starboy6293
    @starboy6293 2 роки тому +2

    suppose i choose 5 is size of array when i enter the name more than the size of 5 it still give me the same output so what it really means of giving size in array if it can give me value more than i entered
    example ;
    char name[5];
    printf("enter your name=");
    scanf("%s",&name);
    printf("your name is=%s",name);

    • @shudocode
      @shudocode  2 роки тому

      Wow
      You are good
      The thing is
      You are able to store data more then the given limit just because of your compiler
      Your compiler is making that fixed limit flexible
      So try different compilers
      You can also try online c compilers
      You will get your answer
      BTW Thanks for submitting your query and Thanks for Watching

  • @Hey-zc7eh
    @Hey-zc7eh 3 роки тому +1

    Hello Coding Sir