Copy a String into another String in C language | C programming video tutorials series

Sdílet
Vložit
  • čas přidán 27. 08. 2024
  • Find Here: Links of C language Video's Playlists
    C Interview Questions & Answers
    • 01 C++ Interview Quest...
    for | while | do-while loops in c
    • Use of for, while and ...
    Functions in C
    • 01 Function in C | How...
    Graphics in C
    • Graphics in C | How to...
    1-D Array | 2-D Array | String | Pointer in C
    • About 1-D Array and 2-...
    Structure & Union in C
    • C Programming - Read &...
    String in C
    • C Programming - Readin...
    1-D Array in C
    • Read 1-D Array and Pri...
    2-Array in C
    • Read 2 D array & print...
    C Preprocessor
    • How to create macro us...
    File Handling in C
    • How to write an intege...
    Pointer in C
    • What is Pointer | How ...
    Dynamic Memory Allocation in C
    • Pre defined function o...
    Pattern Programs in C
    • 01 Patterns in C | How...
    Recursion in C
    • 01 Recursion | How to ...
    #cprogramming #ctutorials #clanguage

Komentáře • 19

  • @ankuryadav3714
    @ankuryadav3714 Před 4 lety +5

    i go through all of your videos ....great learning experience

  • @prasantarout4576
    @prasantarout4576 Před 10 měsíci +1

    Thank you so much sir G🎉🎉🎉

  • @ss_shruti10
    @ss_shruti10 Před 4 lety +3

    Thank you sir!.. for making string learning easy

  • @user-jl1td1bw1r
    @user-jl1td1bw1r Před rokem

    Sir , your tutorials are best for beginners , especially to build logics , they are helping a lot . Thanks Sir

  • @tusharhasan6561
    @tusharhasan6561 Před 3 lety +1

    Really nice video❤️❤️❤️❤️

  • @tej_7488
    @tej_7488 Před 3 lety

    Thanks sir it helped a lot.

  • @sravanikandukuri697
    @sravanikandukuri697 Před 5 měsíci

    Tqq sir

  • @sakshitaneja9182
    @sakshitaneja9182 Před 3 lety

    When we enter the string through standard input , we dont enter any null character, then how it understands that it's a character array or string, if by default its adding null , and we want the characters that we entered to b treated as character array then what should we do so that null is not added by default ?

  • @bhavya610
    @bhavya610 Před 4 lety

    Sir, i have made this program in code blocks without adding null character mannually and it is working..it is automatically placed..but it is creating problem in turbo c where we are manually adding.

    • @SanjayGuptaTechSchool
      @SanjayGuptaTechSchool  Před 4 lety

      Can u paste the code that u have written?

    • @bhavya610
      @bhavya610 Před 4 lety

      Sure sir!!
      #include
      #include
      void main()
      {
      char str1[20],str2[20];
      int i;
      printf("enter the string
      ");
      gets(str1);
      for(i=0;str1[i]!='\0';i++)
      {
      str2[i]=str1[i];
      }
      printf("string 2 is
      ");
      for(i=0;str2[i]!='\0';i++)
      {
      printf("%c",str2[i]);
      }
      getch();
      }

  • @maheshshirsat9075
    @maheshshirsat9075 Před 3 lety

    what if we do not write s[i][='/0'?????

    • @SanjayGuptaTechSchool
      @SanjayGuptaTechSchool  Před 3 lety

      It is used here to let loop know how many times to repeat. So in string at the end null is there so that's why we need to check loop condition for null.

    • @maheshshirsat9075
      @maheshshirsat9075 Před 3 lety

      @@SanjayGuptaTechSchool no.iam asking about s['/0'] at the end???

    • @SanjayGuptaTechSchool
      @SanjayGuptaTechSchool  Před 3 lety

      That is to assign null so that it can be treated as string.

  • @39_jatinjain4
    @39_jatinjain4 Před rokem

    Useless