C Program to Reverse a String

  Рет қаралды 81,038

CodeWithHarry

CodeWithHarry

4 жыл бұрын

Program to reverse a string without using strrev in C Language
I hope you like this C Practice video. Here is the playlist for similar programs: • C Language Practice Pr...
►Checkout my English channel here: / programmingwithharry
►Click here to subscribe - / @codewithharry
Best Hindi Videos For Learning Programming:
►Learn Python In One Video - • Python Tutorial In Hin...
►Python Complete Course In Hindi - • Python Tutorials For A...
►C Language Complete Course In Hindi -
• C Language Tutorials I...
►JavaScript Complete Course In Hindi -
• JavaScript Tutorials I...
►Learn JavaScript in One Video - • JavaScript Tutorial
►Learn PHP In One Video - • Learn Php In One Video...
►Django Complete Course In Hindi -
• Python Django Tutorial...
►Machine Learning Using Python - • Machine Learning Tutor...
►Creating & Hosting A Website (Tech Blog) Using Python - • [Hindi] Web Developmen...
►Advanced Python Tutorials - • Intermediate/Advanced ...
►Object Oriented Programming In Python - • Object Oriented Progra...
►Python Data Science and Big Data Tutorials - • Python Data Science an...
Follow Me On Social Media
►Website (created using Flask) - www.codewithharry.com
►Facebook - / codewithharry
►Instagram - / codewithharry
►Personal Facebook A/c - / geekyharis
Twitter - / haris_is_here

Пікірлер: 163
@CodeWithHarry
@CodeWithHarry 4 жыл бұрын
I made a mistake while writing this program but instead of re-recording, I decided to show you the steps I took to correct my mistakes. Frankly speaking the video actually turned out to be great in my opinion! Don't miss this video! Access this playlist and if you share it on Insta dont forget to tag me Instagram: Instagram.com/CodeWithHarry
@balancemyself
@balancemyself 4 жыл бұрын
It was really great video
@balancemyself
@balancemyself 4 жыл бұрын
Practice makes perfect
@harshitachaurasia1246
@harshitachaurasia1246 4 жыл бұрын
it was really nice!
@pranavnagawade3977
@pranavnagawade3977 4 жыл бұрын
eska aur optimized sol kya hoga??
@neerajlalwani9506
@neerajlalwani9506 4 жыл бұрын
Sir java playlist please
@Jaii_shree_Ram
@Jaii_shree_Ram 4 жыл бұрын
Raat me sone jao .. codewithharry uploaded new video ...subh utho then we have again notification 💕such hard working man 💝 lots of love and respect Harry bhai .. after this 2020 definitely your channel will have new heights 💕
@mondipeditz8578
@mondipeditz8578 4 жыл бұрын
That's what Harry's doi'n for us
@anant-strong
@anant-strong 4 жыл бұрын
@@mondipeditz8578 Help me? Where should I learn C 15hrs video of harry or the playlist by harry.
@anant-strong
@anant-strong 4 жыл бұрын
@@mondipeditz8578 Help me? Where should I learn C 15hrs video of harry or the playlist by harry.
@mondipeditz8578
@mondipeditz8578 4 жыл бұрын
@@anant-strong just learn it from internet
@anant-strong
@anant-strong 4 жыл бұрын
@@mondipeditz8578 internet?
@vampkaitsolution4797
@vampkaitsolution4797 4 жыл бұрын
Harry bhi mai aj website development ap sai sikha hu or mai aj khud k web company chala rha hu ap k itna acha sikha nai k waja sai or jb v mujko problem hota hai ap k video sai abi v bahut help hota hai thanks allha ap ko salamat rakhay thanks bhi
@aseries241
@aseries241 4 жыл бұрын
Dear Sir, please make a Java playlist like C++ and Pythons so that we can learn Java easily 🙏🙏🙏🙏🙏🙏
@sarhan8887
@sarhan8887 Жыл бұрын
Hey bro.. You were on java and c++ before 2 years.. I'm beginner.. Where are you right now? Can you tell me? How's your journey?.. I guess if you had learnt java c++ before 2 years . You are top of a head since now.. Reply plz. 😊
@kokangreen8982
@kokangreen8982 4 жыл бұрын
Sir may Pakistan si ho may 14 sal ka ho may ni apki channel si programing lunguge seek li hian Love you 👍👍❤️❤️❤️
@engineerbhai7642
@engineerbhai7642 4 жыл бұрын
Thank you so much Harry Bhai. Excellent work.
@anilsundar1546
@anilsundar1546 4 жыл бұрын
Thankyou Harry. Will you include the advanced/ latest features of c language as you keep on with these tutorials ??
@harshitachaurasia1246
@harshitachaurasia1246 4 жыл бұрын
How to deal with mistakes! You helped in rectifying my mistake and improve it
@sjrai1538
@sjrai1538 4 жыл бұрын
Bhai solid Yaar gjb Maza as gaya bro
@technicalknowledge5678
@technicalknowledge5678 4 жыл бұрын
Bhai you are awesome thankyou so much for helping us ♥️❤️...I am your biggest fan 🔥
@prasad.rsuvarna8432
@prasad.rsuvarna8432 4 жыл бұрын
Much Appreciated Bhai!
@siddhanttiwari6367
@siddhanttiwari6367 4 жыл бұрын
It's help me a lot
@parthaschakra
@parthaschakra 3 жыл бұрын
It's a good learning exercise. Just wanted to mention about a small glitch. It wont work properly if the length is an even number (say "Harrys" instead of "Harry"). Need to add a function to check odd/even and run the "i" loop accordingly.
@user-zo9ye6de5e
@user-zo9ye6de5e 3 жыл бұрын
Use memmove() ....both is of order n
@snehapaliya9094
@snehapaliya9094 8 ай бұрын
Yes, it's not working for even number
@aamirbhat382
@aamirbhat382 4 жыл бұрын
Please Make a Motivational video i,m watching your javascript playlist i have no computer i,m learning from my phone
@codewithharryfanchannel559
@codewithharryfanchannel559 4 жыл бұрын
Thank you sir ji.
@sakshinaruka3440
@sakshinaruka3440 3 жыл бұрын
bhaiya aap bohut jyaada achhe se explain kr rahe hae ....plz possible ho to isme or bhi achhe questions add kijiega :)
@asimsau1930
@asimsau1930 4 жыл бұрын
you are great.
@vipulkumar3162
@vipulkumar3162 3 жыл бұрын
love you harry bhai
@mudraclasses4504
@mudraclasses4504 4 жыл бұрын
Hello Sir, I need your Pycharm Settings that you used in your tkinter series (Example, from, import, def keyword statements are in blue foreground) Pls reply...
@palkeshrathore5320
@palkeshrathore5320 4 жыл бұрын
I want this best video and best channel😊😍😘
@balancemyself
@balancemyself 4 жыл бұрын
Awesome video
@user-mr8pi8iw4f
@user-mr8pi8iw4f Жыл бұрын
we dont need to go with (n-1)/2 because compiler always take floor value if its int it will give out put 7/2=3
@allinone-mx9cm
@allinone-mx9cm 4 жыл бұрын
Nice haary bhai make video on your programming journey
@souravchatterjee1446
@souravchatterjee1446 3 жыл бұрын
Sir i think there is a mistake in the program. in the for loop i
@03_amanshrivastav47
@03_amanshrivastav47 3 жыл бұрын
YES EXACTLY!!!
@anantgupta1188
@anantgupta1188 2 жыл бұрын
i did len/2 this is working for me
@technicalsaksham3556
@technicalsaksham3556 4 жыл бұрын
Please make a full tutorial series on kivy
@sidhaantagarwal1746
@sidhaantagarwal1746 4 жыл бұрын
Hello harry bhaiya.....big fan
@Ammarkoka
@Ammarkoka 4 жыл бұрын
Please make a videos series on python for data science...
@sunilkumar-ku9um
@sunilkumar-ku9um 4 жыл бұрын
Sir please help I am beginner in c language and I want to become game programmer so please suggest me which window I use
@amitthakur7
@amitthakur7 4 жыл бұрын
please make playlist on reactjs please you have created playlist of website development but reactjs is included in that so without reactjs its incomlete its necessary for web developer to learn reactjs also so please make reactjs playlist in hindi. i am searching for it so long but can't able to find a good teacher like you to make things easier to understand please please . from your fan and student.
@anshitshukla7498
@anshitshukla7498 4 жыл бұрын
Harry bhy Zindabad 🙏🙏
@nopaidandroidgaming3201
@nopaidandroidgaming3201 4 жыл бұрын
Sir please start series of html and css
@shivanshutyagi83
@shivanshutyagi83 4 жыл бұрын
Harry bhai 👋👋
@raviranjan477
@raviranjan477 4 жыл бұрын
I m new in your channel I want to ask question that best course for java and android developer plzzzz help me reply
@sidhaantagarwal1746
@sidhaantagarwal1746 4 жыл бұрын
Bhaiya I'm in class 11.....and I love coding a lot....pls guide kar dijiye what games I can make in pygame...I have already made space invaders game and fruit ninga type games...plz suggest...flappybird bhi code kar raha hu filal....ho sake bhaiya to aap bhi kuch naye games upload karona
@Steve_Chandan
@Steve_Chandan 4 жыл бұрын
Harry bhai can you solve some questions of Hacker rank and Leetcode........ please
@vishusharma7848
@vishusharma7848 4 жыл бұрын
Imagine getting a heart from codewithharry Excited to get this golden opportunity
@xsuritox1058
@xsuritox1058 4 жыл бұрын
stack se brackets ka program bhi dikhao, hackerrank ya codechef k questions bhi bataiye
@neerajlalwani9506
@neerajlalwani9506 4 жыл бұрын
Sir java playlist please
@smitkumarrathod5665
@smitkumarrathod5665 4 жыл бұрын
Sir ,pls aap c++ ke practice problem ke video upload karna .
@abdullahjaved2044
@abdullahjaved2044 4 жыл бұрын
Sir PLease make React Js course React webdevelopment course or any simple introduction how can i become a react js developer
@shahzebchoudry6175
@shahzebchoudry6175 4 жыл бұрын
Harry bahi I have made projects in python and these are now visible on screen how can I access them again
@vaibhavsalunkhe1785
@vaibhavsalunkhe1785 4 жыл бұрын
Harry how to launch website
@kamalsaxena1384
@kamalsaxena1384 4 жыл бұрын
Sir how to integrate payment gateway for website in nodejs reactjs steps by step
@kalyanikondapalli7252
@kalyanikondapalli7252 Жыл бұрын
Sir pls keep the algorithm for this code
@vikramjha7450
@vikramjha7450 4 жыл бұрын
Bhai please reply , c Kaha se sikhu 15 hour se ya playlist se ?
@akshaykothari1929
@akshaykothari1929 4 жыл бұрын
Hi Harry, ek doubt tha iss video mein. I tried to run this code with the string "Akshay" and it resulted in "yashka" but the correct value for reversed string should be "yahskA". But when I change the code in the for loop from i < ( len -1)/2 to i
@viral_video_ayana
@viral_video_ayana 2 жыл бұрын
bhai apne shi kiya he mene bhi try kia👍..
@snehapaliya9094
@snehapaliya9094 8 ай бұрын
Len/2 krk b work kr rha h
@dakshkalucha5408
@dakshkalucha5408 3 жыл бұрын
@CodeWithHarry sir len-1/2 is not working for "even" length of string... it should be len/2 as it gives an integer... this works for both even and odd and also for len = 8 we should go from 0 to 4 not 0 to 3 and hence len/2 is correct... and otherwise len -1-i is also correct.
@akashsarkar1568
@akashsarkar1568 2 жыл бұрын
It will work if you use
@suyashsingh2253
@suyashsingh2253 4 ай бұрын
There is Problem in code. Hello Harry...i love your content and thank you for all vedios, but in this vedio in "for loop we have to write i
@RavinderSingh-yv5cd
@RavinderSingh-yv5cd 4 жыл бұрын
Please tell how to make pong game or easiest game in c
@depisacreation3169
@depisacreation3169 2 жыл бұрын
Sir of string pattern. A reverse like name?
@exito-1
@exito-1 2 жыл бұрын
mere abhi bhi run nahi ho raha hai me kya karu mere name himanshu hai and me jab string me himanshu type kar raha hu rab mere reverse string " uhsanmih" ye aa raha hai , mene code bhi check kara hai same to same hai? please solve harry bhai
@dsboy3790
@dsboy3790 3 жыл бұрын
Sir c++ ke liye cout ka sentence kaise banega
@beunique730
@beunique730 4 жыл бұрын
👍👍
@nirmalyabehuria8511
@nirmalyabehuria8511 4 жыл бұрын
Harry bhai kotlin ka vdo bana do plzzzz
@RohitSharma-mh5sv
@RohitSharma-mh5sv 4 жыл бұрын
Are you using a pen or something like that or doing this with mouse please answer ???😢
@RavinderSingh-yv5cd
@RavinderSingh-yv5cd 4 жыл бұрын
Please tell how to make easiest c game with animation
@AMANYADAV-nn9rm
@AMANYADAV-nn9rm 4 жыл бұрын
sir plz make vidoes on kali linux
@oyepuru
@oyepuru 4 жыл бұрын
Harry bhai Please Yaar Reply To Kr Do Kai Baar Comment Kr Diya Please Ek video Bana Do Competitive Programing Par Me Python Prefer Karta Lekin Competitive Coding Ke Liye c++ use karna chhahta hoon to kya ek company accept kr skti hai esa banda jo Competitive Coding c++ me kre aur Devlopment python Aur harry road map please explain kro yaar i am in 2nd year right now Bro Please🙏❣️ Thanks For Free Education
@VirtualAcademypk
@VirtualAcademypk 4 жыл бұрын
Hello sir aap mic kon sa use kr rahy hain... Main ny kafi bar comment kia lekin koi reply nhi aaya...
@SurajKumar-bo2tv
@SurajKumar-bo2tv 3 жыл бұрын
Sir Ydi saare different char ho to 3rd wala reverse nhi ho rha h
@sandhyabhosale6328
@sandhyabhosale6328 4 жыл бұрын
Harry bhai first viewer
@AmeerHamza-xk4zd
@AmeerHamza-xk4zd 4 жыл бұрын
Sir gmail contact form banana sikhye Django me plzz
@Saniyamohite18
@Saniyamohite18 Жыл бұрын
👍🏻
@sunilkumar-ku9um
@sunilkumar-ku9um 4 жыл бұрын
Sir please help me I am c beginner and I want to become game programmer so please please please please please help me to find a good window
@fost3151
@fost3151 4 жыл бұрын
Advance web development course tutorials place
@sambhavsingh5903
@sambhavsingh5903 4 жыл бұрын
Harry bro
@SalimSalim-oe1um
@SalimSalim-oe1um Жыл бұрын
len/2 is correct bro.
@hafsaali8462
@hafsaali8462 3 жыл бұрын
line 9 main %d ki jaga %s aae ga coz uh are taking srting not an integer
@MananGandhi
@MananGandhi 4 жыл бұрын
Sir pls livestream kar do
@aayushmashiwakoti9247
@aayushmashiwakoti9247 4 ай бұрын
if we give a string having even number of characters with middle 2 alphabets different the program won't give correct result. for example in word hariys
@Mohd_Rayyan123
@Mohd_Rayyan123 4 жыл бұрын
Who want ❤❤ from harry bhai
@mohammadshahul9026
@mohammadshahul9026 4 жыл бұрын
1 st comment like me thank you
@sandipsandal
@sandipsandal 4 жыл бұрын
sir, mere django project me norrmally sirf yahi requirment hai.. 1. user detail me user ka mobile no and uska image required hai, 2. user bhi html page se hi apna blog post kar sake 3. user apna detail update or delete kar skae please sir thora time nikal ke kuch video bana do ess se related hindi me
@sandipsandal
@sandipsandal 4 жыл бұрын
sorry sir aapko is channel pe msg kiya kyon ki abhi aap isis channel pe active ho..
@Kumarsingh-p23
@Kumarsingh-p23 4 жыл бұрын
first comment 🤗🤗
@RohanDasRD
@RohanDasRD 4 жыл бұрын
First
@nikhilraj1842
@nikhilraj1842 4 жыл бұрын
areey yaar automated script laga rakhi hae kya jo har bhar First 😅️😅️
@hritikadwani2963
@hritikadwani2963 4 жыл бұрын
sir androrid studio pe koi tutorial banaiye plzz🙏🙏🙏🙏🙏
@Vijayrajsingh5
@Vijayrajsingh5 4 жыл бұрын
It's already there 🙄🙄
@AmanRaj-wz6ds
@AmanRaj-wz6ds 3 жыл бұрын
Bhai pahli baar apke mistakes dekhe maja aa gaya.....bura maat manna...
@abhishekvishwakarma9045
@abhishekvishwakarma9045 4 жыл бұрын
Hello harry bhai "Android ka course in KOTLIN" bana do if possible. Waise aapka pura naam kya h 😅 mein linkedIn pe search kr raha tha par mila hi nahi
@sandeepmukherjee8927
@sandeepmukherjee8927 3 жыл бұрын
His name is Haris Ali Khan He is a graduate of IIT Kharagpur
@siddhesh1695
@siddhesh1695 4 жыл бұрын
Harry bhai maine reverse JAVA mein try kiya bina kisi method se. Barabar nahi output aa raha hai. Can you please find out the mistake? import java.util.*; public class Reverseee { public static void main(String[] args) { String str="Siddhesh"; //my string char st[]=new char[10]; //character array to store string System.out.println(d); int i,j; int c=str.length(); for(i=c-1;i>=0;i--) { for(j=0;j
@eternalknight2958
@eternalknight2958 Жыл бұрын
WOULD BE THE CORRECT CODE : import java.util.*; public class Reverseee { public static void main(String[] args) { String str = "Siddhesh"; // my string char st[] = new char[10]; // character array to store string int i, j; int c = str.length(); // Reverse the characters in the string and store them in the character array for (i = 0, j = c - 1; i < c; i++, j--) { st[i] = str.charAt(j); } // Print the reversed string System.out.println("Output "); for (i = 0; i < str.length(); i++) { System.out.print(st[i]); } System.out.println(); } }
@manoor0858
@manoor0858 20 күн бұрын
#include #include #include void main() { char array[250]; scanf("%s",array); char rev[250]; strcpy(rev,strrev(array)); printf("%s",rev); }
@shantanu_saraf
@shantanu_saraf 2 жыл бұрын
In for loop we should use len/2 it will work both for even and odd strings. Great video harry bhai🤍
@snehapaliya9094
@snehapaliya9094 8 ай бұрын
Thanks, man, for clearing this doubt
@adityamishra_30
@adityamishra_30 8 ай бұрын
Yes! he has only done for odd strings...but len/2 will cover all cases
@nikhilraj1842
@nikhilraj1842 4 жыл бұрын
Please Reply Harry Bhai Aapse ek sawal aap apne aap ko harry kyo bulate ho haris ali khan ke badle
@mondipeditz8578
@mondipeditz8578 4 жыл бұрын
I had grabbed the mistake that you made (len-2-i)i was like oh yeah soon you're gonna correct it into len-1-i😄😄
@anant-strong
@anant-strong 4 жыл бұрын
Can you help me? Where should i learn C 15hrs video of harry or the playlist of C.
@vivekgupta_3085
@vivekgupta_3085 4 жыл бұрын
Playlist
@vivekgupta_3085
@vivekgupta_3085 4 жыл бұрын
And you can even watch the Naresh i technology
@anant-strong
@anant-strong 4 жыл бұрын
@@vivekgupta_3085 thanks for the answer i have started the playlist
@vivekgupta_3085
@vivekgupta_3085 3 жыл бұрын
@@anant-strong which playlist Naresh it ?
@anonymouszone2472
@anonymouszone2472 4 жыл бұрын
Hello brother...??
@Me-su6bx
@Me-su6bx 3 жыл бұрын
15:08 this is wrong for even numbers try writing something other than harry (ex- someon)
@satyamkush527
@satyamkush527 3 жыл бұрын
ya man
@uniqcreationz
@uniqcreationz 4 жыл бұрын
Kyaa ek 4GB ke pc me python hoskti haii
@Ammarkoka
@Ammarkoka 4 жыл бұрын
Internal storage ya RAM??
@uniqcreationz
@uniqcreationz 4 жыл бұрын
@@Ammarkoka 4GB RAM
@Ammarkoka
@Ammarkoka 4 жыл бұрын
@@uniqcreationz obviously bro why not i have also 4gb ram. Python is very light weight you can also use different ide such as vscode and sublime but i give u advise don't use any highweight ide's such as pycharm little bit hanged in system. But you can also use that's also. If you want.
@uniqcreationz
@uniqcreationz 4 жыл бұрын
@@Ammarkoka ok thanks 💯🥳
@satyamkush527
@satyamkush527 3 жыл бұрын
bro , your code is wrong , please try string other than harrry
@user-wr9xx3ik2y
@user-wr9xx3ik2y 4 жыл бұрын
Inested of Harry just put Hary it doesn't work
@bot.xqueen5886
@bot.xqueen5886 3 жыл бұрын
Sir aap to raftar mi tare bolte ho🤔
@arpanmaheshwari2290
@arpanmaheshwari2290 4 жыл бұрын
bhai bhut badi string ke liye ye fail ho raha hai
@Mohd_Rayyan123
@Mohd_Rayyan123 4 жыл бұрын
bhai please muje pin kardo harry bhai please dil seh
@janvibahuguna865
@janvibahuguna865 4 жыл бұрын
Nitish
@pythonenthusiast9292
@pythonenthusiast9292 4 жыл бұрын
naa betaa naaa
@vivekgupta_3085
@vivekgupta_3085 4 жыл бұрын
Advertisement khuch jayda h
@JohnDoe-kj2cs
@JohnDoe-kj2cs 2 жыл бұрын
Did strrev lol
@satyamshakya9732
@satyamshakya9732 2 жыл бұрын
Kuch palle hi nhi pda
@vjdubey4761
@vjdubey4761 4 жыл бұрын
printf(" *_BINOD_* ") ;
@anilakokapeta9203
@anilakokapeta9203 4 жыл бұрын
Semi colon is missing
@vjdubey4761
@vjdubey4761 4 жыл бұрын
Anila kokapeta thank you so much
@amarpratap8785
@amarpratap8785 7 ай бұрын
please delete this video
@printfiamd5254
@printfiamd5254 Жыл бұрын
Reversing a String : #include #include int main() { char s[100]; printf("Enter a Word : "); scanf("%s",s); int l=strlen(s); for(int i=l-1;i>=0;i--) { printf("%c",s[i]); } return 0; }
@ClashWithHuzefa
@ClashWithHuzefa 10 ай бұрын
Yes bro, even I wanted to say that this is the fast and quickest solution instead of that shitt
@manoor0858
@manoor0858 20 күн бұрын
//using only one array: #include #include #include void main() { char array[300]; char a; gets(array); for (int i = 0; i < strlen(array)/2; i++) { a=array[i]; array[i]=array[strlen(array)-1-i]; array[strlen(array)-1-i]=a; } puts(array); }
@manoor0858
@manoor0858 20 күн бұрын
#include #include #include void main() { char array[300]; gets(array); char rev[strlen(array)]; for (int i = 0; i < strlen(array); i++) { rev[i]=array[strlen(array)-1-i]; } puts(rev); }
C Program To Print Prime Numbers In A Given Range
17:02
CodeWithHarry
Рет қаралды 128 М.
C Program To Print Star Pattern - 2
20:18
CodeWithHarry
Рет қаралды 65 М.
Inside Out 2: Who is the strongest? Joy vs Envy vs Anger #shorts #animation
00:22
لااا! هذه البرتقالة مزعجة جدًا #قصير
00:15
One More Arabic
Рет қаралды 20 МЛН
ПОМОГЛА НАЗЫВАЕТСЯ😂
00:20
Chapitosiki
Рет қаралды 2,5 МЛН
C_69 C Program to Reverse a String | with strrev() and without strrev() function
24:51
Reason Why People Fail Learning To Code!
15:14
CodeWithHarry
Рет қаралды 1,1 МЛН
String Reverse Program In C | In Hindi
11:37
codeitup
Рет қаралды 20 М.
Circular Linked Lists: Operations in C Language
20:37
CodeWithHarry
Рет қаралды 265 М.
Program to reverse a string without using strrev in C Language
12:14
Bubble Sort Program in C
22:43
CodeWithHarry
Рет қаралды 341 М.
Inside Out 2: Who is the strongest? Joy vs Envy vs Anger #shorts #animation
00:22