C_69 C Program to Reverse a String | with strrev() and without strrev() function
Вставка
- Опубліковано 18 жов 2024
- In this lecture we will discuss a C program to Reverse a string with strrev() and without strrev() function.
Best C Programming Tutorials: • Programming in C
*********************************************
Connect & Contact Me:
Jenny's Lecture Hindi: / @jennyslectureshindi
Facebook: / jennys-lectures-csit-n...
Quora: www.quora.com/...
Instagram: / jayantikhatrilamba
Twitter: / khatrijenny
Telegram Group Link: Jenny's Lectures
telegram.me/je...
*******************************************
More Playlists:
Programming in C Tutorials: • Programming in C
C++ Tutorials for beginners: • Lec 1: How to Install ...
Printing Pattern in C: • Printing Pattern Progr...
Best Python Tutorials for Beginners: • Python - Basic to Advance
Placement Series: • Placements Series
Data Structures and Algorithms: https: • Data Structures and Al...
Design and Analysis of Algorithms(DAA): • Design and Analysis of...
Dynamic Programming: • Dynamic Programming
Operating Systems tutorials: // • Operating Systems
DBMS Tutorials: • DBMS (Database Managem...
Tags:
strings, string in c, what is string, c programming tutorials, c programming, best c programming tutorials
#coding #strings #jennyslectures #cprogramming #clanguage
Literally THE best teacher on UA-cam!!!! Thank you so much for such a great explanation!!!!!!
Wow, this is so powerful. First time seeing your video and I am 100% impressed. Thank you
I like this amazingly lecturer.
with and with out the predefined functions.
i have watched multiple others but they just show in way not both like this.
you are my favourite keep going.
She knows what all to say, and what all details to include while to make it CRYSTAL CLEAR understanding to beginners. She steps at beginners level herself in order to deliver utmost. Heartfelt THANKS!!!!
Wonderful lecture. This is exactly the type of explanation I was looking for!!!!!
Tanx, I have started re-learning c programming being an opsimath bit difficult but u made my day🙌
your way of teaching is awesome 🤩 if possible then plzz 🙏 make play list on html , css and java || it a humble request🙏 ||
You are changing your teaching style👍👍
The way you teach is just awesome 👍
Keep on working.
im ict teacher and its great that you teach me and sharing your knowledge
i feel like you in classroom and ask me and get afraid :D and replay the part that i didn't understand it again to answer your question :)
you are really genius !
Madam please make videos on python plzz
I am a mechanical student but intrest to learn python when see u r way of teaching....
Plzzzzzz plzzzzzzz plzzzzzz plzzzzzzz reply mam...❤️
Thankyou mam. You clear my most of problems.
ua-cam.com/video/RNXLD9jTcQ4/v-deo.html
I dont know but loved this lecture and my fev topic ever ❤❤
Thanks ❤️ for this masterpiece heart Fr0m Kashmir (Gulmarg) 😍
Best playlist for C language
You are best mam
mam aapki wajh se muje programming easy lagni lagi hai
Thanks Mam for your great effort and gives us great lecturer.. ❣️
ua-cam.com/video/RNXLD9jTcQ4/v-deo.html
so awesome teaching really to much interested teaching way
Lovely explaination Hats off🎩
ua-cam.com/video/RNXLD9jTcQ4/v-deo.html
Your angel eyes are increasing my understanding
Respected madam zi,
Helping to strengthen to programme,
Mam ur teaching is very nice and easy to understand
ua-cam.com/video/RNXLD9jTcQ4/v-deo.html
Ur 😊 explanation is just wow
Mam ! In every video You smile in the beginning and at the end only 😃😃
I like that though ❤️
isme hm log for loop me agr change kr lete for(I=6;I
Best Explanation.. ever .🎉
As always miss ! you have a teaching talent , continue please ! god bless you
Very good explanation.. thanks 😊
Whenever you star UDF please explain it with some easy way because I was learned that before 5 time but steal confusing... 😵
👍 Very helpful video Mam.
ua-cam.com/video/RNXLD9jTcQ4/v-deo.html
At first Thank you. I watch your lecture regularly, my question to you which camara you use? or camara brand and model name please mention this.
New viewer of your channel mam..
ua-cam.com/video/RNXLD9jTcQ4/v-deo.html
Greatly explain ma'am.......
Superb explained mam...
Mam, Iam from Mass, still watching your vedios for understanding humen technology.
mass!!!!!!!!! pe paani hai kya
#inclde
#inclde
#inclde
Main()
{ char s[20];
printf ("
enter a string ") ;
gets(s) ;
strrev(s) ;
printf (the reverse string is%d, s)
}
OUTPUT:
Enter a string
The reverse string is inam
Mani
%d in 2nd printf will give you error!
There will be%s in 2nd printf
Thank you so much ma'am ❤️
thank you
much love from Romania
Best of tha best teacher 😘😘
ua-cam.com/video/RNXLD9jTcQ4/v-deo.html
such a great explanation
Tomorrow is my C program Lab practical exam and here I'm watching it now 👅
your logic in always great
Playback speed 1.5X😂
No bro 2x and at exam time yh bhi slow lagta h 🙂🙂
@@aashishsingh6857 if you have exam then. why are you reading comments 😂
@@aashishsingh6857 me right now😂
For me, it’s 2x.
@@yogeesh_kulal02 2x
Thanks🙏🙇
ua-cam.com/video/RNXLD9jTcQ4/v-deo.html
Very very thank you mam 🎉😊.
thanks for discuss it.
mam in how many days this course will be complete (estimated time)??
Queen of c language
Mam plz explain process structure of c.
Thanks for your efforts mam
Mam you are a great teacher
Could you tell you are studied from which IIT
Mam how can reverse user input string with Preserving position of Space? Plz help
very very nice teaching learning mam
Mam I am very pure in maths
even I don't coding also
Mam I can take cse (IT)
Please tell Mam
Thanks a lot mam 😊😊♥️♥️
But ma'am u said while counting the length of string, we should not consider the null character.???
#include
int main()
{
float f=0.1;
if(f==0.1)
{
printf("no");
}
}
Mam why if condition getting false here ,plz explain
i think if does not store float value
@@741ibrahim2 nahi..if so,compile time would have shown an error....it is compiling.
Cute explanation
You are amazing 😌
Thanks alot mam
You are the best 🤩
Hello mam,
Iam placed as embedded software developer, recently.
Will this unacademy useful to me to improve my coding ?
Let me know briefly about it.
Thank you mam &
You are one of my best best faculty 💖.
I love the way , how you are teaching ✨...
Thank u maam ❤️❤️❤️
Awesome logic
*REVERSING OF STRING IS NOT SWAPPING* - strrev() does swapping of characters but if a string can be printed in reverse order then it's also reversing. If the requirement is only for output then reversing a string without swapping is also correct. But why are you doing this with for loop if we can use strrev() for that?
I have written a code to reverse the code without using the string header. Here is the code:
// Program to reverse a string without using string.h header file
#include
int main()
{
char a[31], swap_a;
int i, j, a_size, string_size = 0;
for (i = 0; i < 30; i++)
{
a[i] = 0;
}
printf("Enter a word within 30 characters: ");
scanf("%s", a);
for (i = 0; a[i] != 0; i++)
{
string_size++;
}
for (i = 0, j = string_size; i < string_size/2; i++)
{
swap_a = a[i];
a[i] = a[j-1-i];
a[j-1-i] = swap_a;
}
printf("%s
", a);
return 0;
}
Because some compilers wont see the strrev() function in the library. This way, one can write the function by one’s self and then use it throughout the program.
@@ajayijohnson strrev() is defined in string.h header file and which compilers do you THINK don't SUPPORT this header file?
@@debojitacharjee Yes! I know it’s in that header file string.h but then I’m also aware that it’s mostly available in windows system. I have tried to use this command in a Linux environment and the function strrev() and some other functions are not in the header file string.h. There peculiarities with different environment and in case one cannot find it, the algorithm can be written.
@@ajayijohnson it's the problem with gcc compiler but that means compiling on Windows would make a program more code optimized. Using functions instead of custom code optimizes the overall LOC.
@@debojitacharjee online compilers
thank u mam
ua-cam.com/video/RNXLD9jTcQ4/v-deo.html
Mam I fall in your eye
Thanks mam. Please mam send me the C notes
Namskar mam, mai aapka ek subscriber hu, kya aap meri kuch madad kr skte hai. Mai apne computer me jaise hi keyboard plugin krta hu uske baad automatic files open hone lagti hai, automatic kuch letter type hone lgta hai, aur fir 1 se 2 minutes ke ander shut down ho jata hai. Maine 1) pc usb port bhi change kra liya 2) keyboard bhi change kra liya. 3) UA-cam ke tricks bhi try kr liya fir bhi sahi nhi hua, ab aap bataye mai kya karu
I can't understand how a parameter can be a pointer, and how is it used as a string in strrev function??
Ma'am when did you taught swapping of two numbers?
mam lecture is good but plz try to avoid background sounds
Ma'am Can you explain your lectures using java??
durga sir will help you i guess
@@amallearningwebdevelopment bhai meri job lagyi abb😂
Abb kya krunga mein
Why we don't use puts instead of printf?
Thanku so much mam
Ye logic kahi to dekha he....😗 by the way thank you
Tnq u 😮
#include
#include
int main() {
int len1;
char s1[1000];
printf("Enter your string : ");
fgets(s1,100,stdin);
len1 = strlen(s1);
for(int i = len1; i>=0; i--) {
printf("%c", s1[i]);
} printf("
");
return 0;
}
How many days did what to learn c language
Mam this is a string or a array.
Tq mam
draw a flow diagram to input your name and print it in reverse
#include
#include
int main(){
char str[30] = "Nikhil";
int len = strlen(str);
int j = len-1;
int i=0;
while(j > i){
char ch = str[i];
str[i] = str[j];
str[j] = ch;
j--;
i++;
}
printf("%s",str);
return 0;
}
#include
#include
#include
void main()
{
char s1[30];
gets (s1);
int l=strlen(s1);
for(int i=l;i>=0;i--)
{
printf("%c",s1[i]);
}
}
#include
#include
#include
void main(){
char str1[50]="India is great",str2[50];
int l=strlen(str1),i,j=0;
printf("Original string=%s
",str1);
for(i=0;i
Cant we use two for loop??
22:43 Kya Kar Rahi Hu😅😂
Pls upload python play list mam
Can you give me solution of this
write a C program that create data structure that are larger than the amount of physical memory contained in their machine
1??it is an integer and string is character type array having \0 at the end, is it possible to include integer in it??? Just asking as I am having confusion
1 is not just integer
'1' is treated as character also in C.
For example, in print statements where you want to print a number or menu, we print as :
printf("1.Option 1
2.Option 2
3.Option 3
");
Here the numeric symbols are treated as characters.
But in arithmetic (math) operations, the numeric symbols are treated as math numbers.
Eg :
int c= 5+3; // c=8 will be stored
So we can use 1 as number and '1' as character
So yes, you can include numbers in your strings too, where the number also will be treated as character.
Note :
//char ch=1; //wrong use
char ch= '1'; //ch stores '1' as character
printf("%c",ch); //will print 1
int num=1;
//int num='1'; //wrong use
printf("%d",num); //prints 1
num++; //correct
//ch++; //wrong bcoz ch is character and addition is done only on numbers, not characters
Mam i have a problem. My c programing madam is beautiful😍, watching her beautiful face, i can't learn subject. That's why i opened u tube to learn, but the problem is repetd agin bcuz you are too beautiful then her😍. I think i can't learn c 😅.
😂
😂
Mam how to find greatest word from given sentence?
Mem kitne lecture or hoge
To complete c
at 4:42 you are a bit confused...i think mam
Mam which topic you teach after teaching string
Functions
@@JennyslecturesCSIT in how many months you needed to complete c programming
Because mam in my college internship was going mam that's why i ask
Wuthout using string function yet u sue string function strlen why mam?
MAINE AAJ AAPKO DWARKA SEC 19 AMBHARI GAON KE PASS DEKHA
You not used the strrev() function🙄
I'm from Arts background still I'm there 😂
why does gets function is not working in my compiler its giving me error
Best
ua-cam.com/video/RNXLD9jTcQ4/v-deo.html