Palindrome program in C | Check if number or string is Palindrome | #9 Coding Bytes

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ก.ย. 2024
  • In today's video, we will discuss how to check if a given number or a string is a palindrome or not. If you want to know the detailed solution of the discussed programs in C, C++, Java or Python, then refer the below links.
    Program to check if a given number is a palindrome - bit.ly/2NCBHZ0
    Program to check if a given string is a palindrome - bit.ly/2p8LjkX
    For aptitude and programming preparation resources, recruitment drive updates, interview tips & tricks, come join the largest learners' community on Telegram and WhatsApp and take your placement preparation to the next level.
    Join here:
    Telegram: t.me/faceprepo...
    WhatsApp: bit.ly/2MgoYMR

ความคิดเห็น • 60

  • @isikamaiti9116
    @isikamaiti9116 2 ปีที่แล้ว +1

    Ma'am ,if we consider a string like "moram". So then,we should not give break in this position.Because if(m!=m), condition false ,and then break statement help to terminate the loop ,and print both are same string.

  • @vishnumaragani
    @vishnumaragani 2 ปีที่แล้ว +3

    Short and sweet logic explanation

  • @Sj_54321
    @Sj_54321 4 ปีที่แล้ว +5

    Your classes are very useful... 😇

  • @alekyareddy4086
    @alekyareddy4086 2 ปีที่แล้ว +7

    Can we use string reverse function to check whether it is palindrome or not

    • @bhuvan6926
      @bhuvan6926 2 ปีที่แล้ว +3

      Can you please write that code ..what you have assumed??....

  • @bedantasahoo1702
    @bedantasahoo1702 2 ปีที่แล้ว +3

    Thanks for the explanation ☺️it's very useful

  • @Jahirulislam22dob
    @Jahirulislam22dob 3 ปีที่แล้ว

    Your teaching technique is very good and voice as well

  • @bhuvan6926
    @bhuvan6926 2 ปีที่แล้ว +2

    Thank you FACE PREP♥️♥️

  • @ritiks.hujwant3816
    @ritiks.hujwant3816 3 ปีที่แล้ว +2

    Thank you for such a great explanation 💫🤩🥰

  • @mdfaizanalam_
    @mdfaizanalam_ 3 ปีที่แล้ว +1

    Thanks for explaining the logic

  • @Jahirulislam22dob
    @Jahirulislam22dob 3 ปีที่แล้ว

    I think this video will help at least little bit to those who will watch

  • @am_ayaan_5379
    @am_ayaan_5379 2 ปีที่แล้ว +1

    Logic is very good thanks

  • @EAKRAJ1234
    @EAKRAJ1234 2 ปีที่แล้ว +1

    Thanks for the great explanation

  • @adityakocharla
    @adityakocharla 3 ปีที่แล้ว

    Tq so much this video 📷📷📷 helped me a lot to understand the concept

  • @purveshpangudwale5083
    @purveshpangudwale5083 4 ปีที่แล้ว +1

    What happen if the character is palindrome then also it will break out from for loop in 1st iteration only

    • @1prdas1
      @1prdas1 3 ปีที่แล้ว +1

      If the first condition is true than it will loop through all until condition is false. But if the first or any next iteration is false it will break from loop before completion and give output as non palindrome.

  • @a12-j4c5v
    @a12-j4c5v 3 ปีที่แล้ว

    Could u please give me the program to check wether the words in a given sentence are palindrome.if not reverse the word.print the new sentence right now ples? Fast.

  • @pragyasharmar2104
    @pragyasharmar2104 4 ปีที่แล้ว +2

    Had a great session

  • @gowthamb12a68
    @gowthamb12a68 ปีที่แล้ว

    Mam how to use pointers in palindrome

  • @md.parvej9493
    @md.parvej9493 4 ปีที่แล้ว

    Awesome class.

  • @flyingbomber
    @flyingbomber 4 ปีที่แล้ว +1

    Thanks mam

  • @ramakrishnanv3793
    @ramakrishnanv3793 3 ปีที่แล้ว

    THANK YOU SO MUCH, MAM... I HAVE A DOUBT IN THAT CONCEPT AND NOW YOU CLEARED THAT MAM

  • @RisingIndiabyRSK
    @RisingIndiabyRSK 4 ปีที่แล้ว

    Awesome video

  • @balarajumbbalarajumb8910
    @balarajumbbalarajumb8910 3 ปีที่แล้ว

    ALP to Check string is palindrome or not in ARM 7 Program one program send madi

  • @Manu_V_M
    @Manu_V_M 4 ปีที่แล้ว

    Thank you so much❤️👍

  • @Sagarmore17
    @Sagarmore17 4 ปีที่แล้ว

    Good work mam

  • @ajithakhil7079
    @ajithakhil7079 2 ปีที่แล้ว +2

    your string palindrome logic is not complete.
    for(i=0;i

    • @mhdsadiqp4756
      @mhdsadiqp4756 ปีที่แล้ว

      Please provide full of the program 🙏

    • @wladekarek
      @wladekarek 10 หลายเดือนก่อน

      actually there is no point in checking entire length of the string, half of it will do, it is c# but you all will get it :)
      static bool IsPalindrome(string text){
      int len = text.Length;
      int halfLen = len /2;
      len -= 1;

      for(int i = 0; i < halfLen; i++){
      if(text[i] != text[len - i]) return false;
      }

      return true;
      }

  • @krishnachhabra77
    @krishnachhabra77 4 ปีที่แล้ว +2

    Explaning skill 👌

  • @solowalker2548
    @solowalker2548 11 หลายเดือนก่อน

    After breaking the while loop ,The value of n would be zero

  • @rajilakshmi9081
    @rajilakshmi9081 4 ปีที่แล้ว

    Awesome ya!!!

  • @shubham-sale
    @shubham-sale 4 ปีที่แล้ว

    Nice explanation

  • @saibashanoorbasha2962
    @saibashanoorbasha2962 3 ปีที่แล้ว +1

    But I want in python not in C😢😢. Anyway you r looking gorgeous😍😍

    • @suriyaprakash5172
      @suriyaprakash5172 3 ปีที่แล้ว

      If u know Concept, write any programming language it's simple.

    • @saibashanoorbasha2962
      @saibashanoorbasha2962 3 ปีที่แล้ว +1

      @@suriyaprakash5172 If I know Why would I prefer to your videos bro

  • @ss.b.s3170
    @ss.b.s3170 3 ปีที่แล้ว

    U had not initialize the rem in program

    • @FACEPrep
      @FACEPrep  3 ปีที่แล้ว +2

      It's just a pseudo code buddy. But yeah you are right it has to be initialized.

  • @pranavjoshi9234
    @pranavjoshi9234 4 ปีที่แล้ว

    Easiest way to understand palindrome program
    int main(void)
    {
    int a,b,c,d,e,f;
    printf("Please Enter a 5 digit number: ");
    scanf("%d",&a);
    b=a/10000;
    c=a/1000;
    d=c%10;
    e=a%10;
    f=a%100/10;
    if(b==e && d==f)
    {
    printf("Your number is \"palindrome\" = %d
    ",a);
    }
    else
    {
    printf("Your number is \"NOT\" palindrome-%d
    ",a);
    }
    printf("Thank you!");
    return 0;
    }

  • @mr__rishi.1157
    @mr__rishi.1157 3 ปีที่แล้ว

    ❤❤❤

    • @FACEPrep
      @FACEPrep  3 ปีที่แล้ว

      We love you too.

  • @pranavsharma4714
    @pranavsharma4714 4 ปีที่แล้ว +2

    You need to practice a lot how to explain things

    • @thasthakir3125
      @thasthakir3125 3 ปีที่แล้ว +6

      You need to Practice a lot how to understand things.

  • @balarajumbbalarajumb8910
    @balarajumbbalarajumb8910 3 ปีที่แล้ว +1

    Plz send me mam

  • @chikkamsrinivas6118
    @chikkamsrinivas6118 2 ปีที่แล้ว +1

    Thank u so much madam

  • @SudyaCreator
    @SudyaCreator 2 ปีที่แล้ว

    mam so cute ❤

  • @nsunandha3031
    @nsunandha3031 ปีที่แล้ว

    In this program what is the use of flag madem why you write flag Flag means madem explain mam

  • @erenoriginal
    @erenoriginal ปีที่แล้ว

    what is the for loop for given number is palidrome or not

  • @suchanaghosh7943
    @suchanaghosh7943 ปีที่แล้ว

    input:noon5
    output:noon is palindrome. pls slove this.

  • @lalayadav-n3e
    @lalayadav-n3e 2 ปีที่แล้ว

    why we use flag can anyone explain

  • @farhanaahmmed4832
    @farhanaahmmed4832 3 ปีที่แล้ว

    Your Explanation is really awesome...

  • @thulisisizwemagagula
    @thulisisizwemagagula 4 ปีที่แล้ว

    Thank you So much

  • @jeevansmith
    @jeevansmith 3 ปีที่แล้ว

    🔥🔥

  • @geniusboys8204
    @geniusboys8204 4 ปีที่แล้ว +3

    I think you are wrong, break should be inside if loop

  • @ajajhusainofficial
    @ajajhusainofficial ปีที่แล้ว

    your logic is very simple .
    Thank you mam

  • @thamburemash8030
    @thamburemash8030 3 ปีที่แล้ว

    are you single...?