Special Programs in C − Check If The Number Is Palindrome Number

  Рет қаралды 280,115

Neso Academy

Neso Academy

6 жыл бұрын

C Programming & Data Structures: Special C Programs − Check If The Number Is Palindrome Number.
Topics discussed:
1) Meaning of palindrome.
2) Palindrome numbers.
3) How to check if the number is a palindrome or not?
4) C program to check if the number is a palindrome.
C Programming Lectures: goo.gl/7Eh2SS
Follow Neso Academy on Instagram: @nesoacademy(bit.ly/2XP63OE)
Follow me on Instagram: @jaspreetedu(bit.ly/2YX26E5)
Contribute: www.nesoacademy.org/donate
Memberships: bit.ly/2U7YSPI
Books: www.nesoacademy.org/recommende...
Website ► www.nesoacademy.org/
Forum ► forum.nesoacademy.org/
Facebook ► goo.gl/Nt0PmB
Twitter ► / nesoacademy
Music:
Axol x Alex Skrindo - You [NCS Release]
#CProgrammingByNeso #CProgramming #PalindromeNumberProgram

Пікірлер: 101
@youtubeweb3009
@youtubeweb3009 4 жыл бұрын
I don't think I'll be able to think any logic like this Like this guy does I wish i was smarter... :(
@amiralam1786
@amiralam1786 3 жыл бұрын
i wish sooo :-( i am so upset!
@technicaljethya993
@technicaljethya993 3 жыл бұрын
He looks smarter to us because he had done lot of practice and hardwork ,do the same then other people will think same about you😉
@SANTHOSHKUMAR-px7yt
@SANTHOSHKUMAR-px7yt 3 жыл бұрын
A good coaching in this video might be u can give brief explanation..thanks to neso academy
@guptagopal
@guptagopal 6 жыл бұрын
thanks a lot & congratulations because now you have 0.33M subscribers and I prey that your this journey will travel an infinite long distance.
@mdzaid3880
@mdzaid3880 2 жыл бұрын
now its 1.38M and counting..
@vedant8002
@vedant8002 2 жыл бұрын
1 .5
@tomidebbie2078
@tomidebbie2078 Жыл бұрын
Now at 1.9🎉
@abuhozaifa8719
@abuhozaifa8719 5 жыл бұрын
Ser please upload videos about arrays in c.. Neso academy..
@yogavelanbj9967
@yogavelanbj9967 6 жыл бұрын
Sir please upload videos for control system engineering
@mayankjadhav4509
@mayankjadhav4509 6 жыл бұрын
sir, please upload more videos like this for Armstrong number, strong number etc...and please upload is as soon as possible.
@darkwhisper98
@darkwhisper98 5 жыл бұрын
thanks for the help!! new subscriber and programmer
@awilomar8383
@awilomar8383 2 жыл бұрын
thank you neso acedemy
@currentxchange
@currentxchange 3 жыл бұрын
Not sure about in c but you could also do this by converting to string and comparing characters
@beingkind3610
@beingkind3610 2 жыл бұрын
Thank you so much...
@I_am_smooth_as_butter
@I_am_smooth_as_butter 4 жыл бұрын
I can only check upto 10 numbers can u answer why..I used unsigned long long but nothing has changed..
@thomasbulus
@thomasbulus Жыл бұрын
Thank you for the wonderful teaching sir. But why do we have to declare the variable n and later assigned its value to q in the code?
@varadharlikar
@varadharlikar 2 ай бұрын
Not neccassary but it makes it easy to access an value
@ujjwal2473
@ujjwal2473 3 жыл бұрын
Thank you so much neso academy, you are always the best.
@mehediazad1780
@mehediazad1780 2 жыл бұрын
thank you
@mauryaashish1865
@mauryaashish1865 3 жыл бұрын
This was little hard for me to understand, how the code was actually working! But finally able to understand 😊
@mauryaashish1865
@mauryaashish1865 3 жыл бұрын
@@kellenlance7184 Now you guys broke up! LOL 😂
@mauryaashish1865
@mauryaashish1865 3 жыл бұрын
@Aydin Gregory Thumbs up to you! 😀
@harishbabuthrovagunta2245
@harishbabuthrovagunta2245 2 жыл бұрын
what is code about racecar,xox ..etc; wether to checkpalidrome or not ?
@true4189
@true4189 3 жыл бұрын
Thank u
@truegrabbers
@truegrabbers 3 жыл бұрын
Jaspreet Singh Sir d best
@ececse
@ececse Жыл бұрын
thankyou sir
@aatmakumar4631
@aatmakumar4631 2 жыл бұрын
Nice class sir
@camerald8257
@camerald8257 3 жыл бұрын
This is lit♥️
@Indianitguy-cv6pf
@Indianitguy-cv6pf 4 жыл бұрын
Sir we cannot check the number of digit greater than 11 please explain it
@amiteshyadav231
@amiteshyadav231 5 жыл бұрын
How to check the given string is palendrom or not sir plzzz
@gugunkhongsai13
@gugunkhongsai13 2 жыл бұрын
I think your code still shows "its not a palindrome" even for palindromes
@jyotideveda350
@jyotideveda350 2 жыл бұрын
It is explained clearly but I couldn't understand the use of last logic that is q=q/10...
@nehasawant9460
@nehasawant9460 2 жыл бұрын
Me too
@ShahbazKhan-pf3oo
@ShahbazKhan-pf3oo 2 жыл бұрын
It's actually used to truncate the number.. For ex. n=156, we take it as q, rem=q%10 i.e 6 in this case, result=0×10+6=6, then q=156/10=15..thus we have stored the last digit in result and now we are left with 15, therefore now the loop will run again since q!=0, now rem=15%10=5, result = 6×10+5 =65, thus we reversed the last two digits now we have to truncate them so again q=15/10=1, again the loop will run, now rem=1%10=1, result=65×10+1=651, hence now we have completely reversed it, again q=1/10=0 thus it finally comes out of the loop now since it's fully reversed and q is now = 0...since in this example the original and the reversed number is not the same therefore it's not a palindrome
@nehasawant9460
@nehasawant9460 2 жыл бұрын
@@ShahbazKhan-pf3oo thanks
@abhishek1978
@abhishek1978 10 ай бұрын
​@@ShahbazKhan-pf3oothank you so much bro❤️❤️❤️❤️
@VarshaReddy-bf4ku
@VarshaReddy-bf4ku 7 ай бұрын
U just divide the given number by 10
@gagansingh7251
@gagansingh7251 2 жыл бұрын
How will we check for names
@shrur3527
@shrur3527 8 ай бұрын
Tq🙏🙏❤️❤️
@yassinbagane
@yassinbagane 2 жыл бұрын
we simply can use 2 loops the first one i starts for 0 and the other one starts from the end and compare if t[i]!=t[j] break if not print the number/word is palindrome
@uraharakisuke5305
@uraharakisuke5305 2 жыл бұрын
for that you'll need to convert the number to string
@ahsayadshabana3621
@ahsayadshabana3621 2 жыл бұрын
Hi
@hhcdghjjgsdrt235
@hhcdghjjgsdrt235 2 жыл бұрын
@@uraharakisuke5305 leetcode has that kind of problem.
@user-kr9wx5of8j
@user-kr9wx5of8j 3 жыл бұрын
pls help me what i do when i try to think in problem and failed again and again for week and with pin and paper and failed again and ask hint and not know this problem and after all this i see answer her is this true ??!! thanks for this video and need any one make experience said me is this good way or know.
@Dnsx_plus
@Dnsx_plus 4 жыл бұрын
Why can't we just convert the number into a string, find the lenght of the string, subtract it by one so it accesses the last character in the string, and put it in a forloop and keep adding one to the lenght of the string variable and checking it?
@yenzyhebron5278
@yenzyhebron5278 3 жыл бұрын
That's possible, works best for word palindromes
@Dnsx_plus
@Dnsx_plus 3 жыл бұрын
@@yenzyhebron5278 awesome, thanks
@rsingh6216
@rsingh6216 3 жыл бұрын
If you are finding it difficult then. 1. Copy pen nikaalo aur loop ko poore process mei line by line calculate kro koi bhi palindrome leke. 2. q=n kyu kiya hai ye smjho. 3.result ko 0 kyu liya tha ,wo jab tum copy pen loge pta chl jaega.
@Trafalgar_D_law_
@Trafalgar_D_law_ 4 жыл бұрын
what is the remainder of 2%10 ?last step , so the given example should not be palindrome know
@java_shaileshkushwaha878
@java_shaileshkushwaha878 4 жыл бұрын
2%10 division goes 0 time 0 is quotient and remainder is 2
@satishkumarperla1989
@satishkumarperla1989 6 жыл бұрын
will u complete syllabus before gate'19 sir?
@andistheinforitbutso7513
@andistheinforitbutso7513 2 жыл бұрын
Good Afternoon
@thejagoud2950
@thejagoud2950 4 жыл бұрын
sir please upload datastructers vedios please
@TanjilAl-Nayeef
@TanjilAl-Nayeef 5 ай бұрын
Thanks . Love from Bangladesh 🇧🇩 and love from #Chandpur_Science_and_Technology_University-(#CSTU)
@professorcat431
@professorcat431 6 жыл бұрын
Badhiya video
@julyxi
@julyxi 2 жыл бұрын
cool video!!!
@user-kr5tp1ls3d
@user-kr5tp1ls3d 5 ай бұрын
7:58 thnx... bt fr the 1st time u kinda failed to crystal clear the logic to us. yet learned.
@DNNGadget
@DNNGadget 2 жыл бұрын
Me still learning this code, C is base lol 😁
@20_SinManya
@20_SinManya 5 жыл бұрын
I have one doubt: Is '1001' is a palindrome (Note the single quotes before answering)?It would be very nice if you can show the program using strings.
@vprakash2471
@vprakash2471 3 жыл бұрын
For that we need to use arrays.... using arrays it will be very easy, just one for loop will be used.
@KurokishiYT
@KurokishiYT Жыл бұрын
@@vprakash2471 what if we we convert the number into a string a get the first and last character and compare them? i mean palindrome numbers always start and end with the same numbers
@vikaythchandra9236
@vikaythchandra9236 2 жыл бұрын
But how will it know that after dividing 2332 with 10 it should divide 233 with 10 and after that it should divide 23 with10 and 2 with 10???
@vikaythchandra9236
@vikaythchandra9236 2 жыл бұрын
i had to proces what doubts i had
@JayKumar-mr2oh
@JayKumar-mr2oh Жыл бұрын
q=q/10;
@rishabhmodi9732
@rishabhmodi9732 3 жыл бұрын
What happen if we put q=n; inside while loop
@JayKumar-mr2oh
@JayKumar-mr2oh Жыл бұрын
Ah, the q=q/10 statement would be useless.
@abhishekhugar212
@abhishekhugar212 3 жыл бұрын
In my laptop execution time is too long, So please someone suggest me a good application for c language in laptop 🙂
@Elliababy2
@Elliababy2 Ай бұрын
vs code
@palani8776
@palani8776 6 жыл бұрын
Sir what compiler you are using
@mayankjadhav4509
@mayankjadhav4509 6 жыл бұрын
CodeBlocks
@hemalakshmi9044
@hemalakshmi9044 3 жыл бұрын
Codeblocks
@thripthi5298
@thripthi5298 2 жыл бұрын
Why should we assign n to q q=n;
@edoghotugideon28
@edoghotugideon28 Жыл бұрын
because we want to use q for our manipulation and not touch n, so that at the end we can compare n with the result
@currycel470
@currycel470 6 ай бұрын
Lol, spent 30 mins to figure out what i am doing wrong, just realised i declared n = q not q=n. lmao
@tayyab.sheikh
@tayyab.sheikh 6 ай бұрын
I couldn't understand this line q = n
@mohamedkhawaga8067
@mohamedkhawaga8067 2 жыл бұрын
firstly , thank you for effort i have tried 123454321 and it is palindrome while 12345654321 is not ??!!
@NeighbourHeap
@NeighbourHeap Жыл бұрын
Even ..i am facing same issues, for very big numbers it's showing like this... I even tried to by making int to long long int ...now wt to do??
@anubhav3623
@anubhav3623 3 жыл бұрын
why is q!=0 in while loop
@vishal-sr5et
@vishal-sr5et 3 жыл бұрын
Bcoz at the end ,when last digit from back ,is divided by 10,it would give 0 and our reversing processing would be finished
@anubhav3623
@anubhav3623 3 жыл бұрын
@@vishal-sr5et thanks bro
@krinesh
@krinesh Жыл бұрын
4:53
@formaltechz
@formaltechz 6 ай бұрын
Racecar is palindrome 😅
@valishapallav1990
@valishapallav1990 3 жыл бұрын
why should we use only 10 to divide the number, i have doubt in it
@jaydenferrer7096
@jaydenferrer7096 2 жыл бұрын
becuz u want to remove the last digit each time
@anubhav3623
@anubhav3623 3 жыл бұрын
plz reply
@priyankabehera8288
@priyankabehera8288 3 жыл бұрын
🙏🙏🙏🙏
@ItsAbhiDestiny
@ItsAbhiDestiny 2 жыл бұрын
🤟
@allaboutlovelife3915
@allaboutlovelife3915 2 жыл бұрын
Face reveal plz
@tasneemmohammad2452
@tasneemmohammad2452 Жыл бұрын
#include int main() { int result=0,n,rem,x; scanf("%d",n); x = n ; while(x!=0) { rem = x%10; result = result*10 + rem; x = x/10; } if (result == n) printf("palindrome"); else printf("not palindrome"); return 0; } goddamit im not getting required result.whyy?
@JayKumar-mr2oh
@JayKumar-mr2oh Жыл бұрын
Put & ampersand symbol in scanf while storing value at n variable.
Special Programs in C− Check If The Number Is Armstrong Number
12:16
Special Programs in C − Pyramid of Stars
11:06
Neso Academy
Рет қаралды 850 М.
Cat Corn?! 🙀 #cat #cute #catlover
00:54
Stocat
Рет қаралды 15 МЛН
Clowns abuse children#Short #Officer Rabbit #angel
00:51
兔子警官
Рет қаралды 59 МЛН
DEFINITELY NOT HAPPENING ON MY WATCH! 😒
00:12
Laro Benz
Рет қаралды 51 МЛН
The Algorithm Behind Spell Checkers
13:02
b001
Рет қаралды 407 М.
Call By Value & Call By Reference in C
8:34
Neso Academy
Рет қаралды 1,3 МЛН
Check whether a Number is Palindrome or Not: C Program
5:24
Technotip
Рет қаралды 21 М.
Special Programs in C − Check If The Number Is Prime Number
10:26
Neso Academy
Рет қаралды 135 М.
Check If A String Is A Palindrome | C Programming Example
10:56
Portfolio Courses
Рет қаралды 35 М.
Recursion in C
11:12
Neso Academy
Рет қаралды 898 М.
Fastest Way to Learn ANY Programming Language: 80-20 rule
8:24
Sahil & Sarra
Рет қаралды 784 М.
Palindrome |  Program to check if a string is Palindrome | Java
9:31
B Tech Computer Science
Рет қаралды 104 М.
Pointers and dynamic memory - stack vs heap
17:26
mycodeschool
Рет қаралды 1,4 МЛН
Cat Corn?! 🙀 #cat #cute #catlover
00:54
Stocat
Рет қаралды 15 МЛН