I've never ever seen this kind of bestest faculty for programming.... I was blunt in programs... But with ur unique way of explanation is amazing Sir. Ur doing actually a great job😇🙂🙂👏👏👍👍👍👌👌
as u already told scanf() breaks at white space, but how to compile instead of scanf sir, int main() { char a[20],sw; int l,i; printf("enter a string: "); scanf("%s",a); for(l=0;a[l];l++); for(i=0;i
thnx sir... sir ap koi mini games ya mini project pe koi series start kren sir ap ka learning style boht zabardast h ,,,,ham ne institute main itna nh seekha sir jitna ap se seekha ,,
Great !! You are explaining very good. Thanks a lot... But I want to suggest you something that please use an editor to explain or explain through ppt. ☺️
Sir aapke premium video aur normal me kya farak hai . Aur sir aapke web development premium agar mai leta hu toh mujhe usme frontend ka aur backend dono sikhne ko milega?
Sir yeh second loop samaj nahi aaya jab l/2 kar diya toh length half hoh jaegi to ab s[i] =s[L-1-i] seh kaise interchange hoh raha hai kyuki ismeh toh aapne 0 koh 7 seh replace kiya hai???????
sir mene if condition se kiya hai main() { char s[20]; int i,x; printf("Enter Your Name: "); gets(s); for(i=0;s[i];i++); for(x=i;x>=0;x--) { if(x>=0) { printf("%c",s[x]); } } }
/* program to reverse string without using strrev() */ #include #include #include void main() { int i,j,len; char s[100],temp; printf("enter a string: "); gets(s); len=strlen(s); i=0; j=len-1; while(i
I've never ever seen this kind of bestest faculty for programming.... I was blunt in programs... But with ur unique way of explanation is amazing Sir. Ur doing actually a great job😇🙂🙂👏👏👍👍👍👌👌
for(l=0 ; s[l] ; l++); //this line also use for int ??????
whenever i stuck somewhere, first task i do is to visit your channel SIR. And you always help me
U are the best professor for c programming language in India
Sir, your way of explaining is excellent... Hats off to u sir...
Hello sir
Sir the skill of explainig any doubt is really great
I don't know why this video has 50+ dislikes. It is by far the simplest and easy solution I have seen.
Sir ,you have cleared the doubt of actually reversing ,and printing the string in a reverse manner.!!
Thanku so much sir , because of you I actually understand how it happens ,best explanation. 🙏
Noone is born in this world who can explain like u sir❤🙏
Awesome sir, u nailed it, thanks a lot for this explanation 👍👍
best c lectures i have ever seen
Great sir I love the way you make it easier to understand
as u already told scanf() breaks at white space, but how to compile instead of scanf sir,
int main()
{
char a[20],sw;
int l,i;
printf("enter a string: ");
scanf("%s",a);
for(l=0;a[l];l++);
for(i=0;i
thank you so much sir it is too much helpful video
thnx sir... sir ap koi mini games ya mini project pe koi series start kren sir ap ka learning style boht zabardast h ,,,,ham ne institute main itna nh seekha sir jitna ap se seekha ,,
More helpful and more valuable Sir thanks so much for all videos support
Awesome sir,u r great
Explanation is very very nice.
Sir Aap mere ideal ho.
Omg, perfect teacher
U r genious sir, thanks to be a sir like uh🙏🙏🙏🙏🙏
Great Information !!
Thank you so much sir ji
nice explanation sir, please upload video of spiral matrix
thank you from algeria ...
you are great
Great !! You are explaining very good. Thanks a lot...
But I want to suggest you something that please use an editor to explain or explain through ppt.
☺️
Sir is program ko exam me use kar skta hun please reply❤
Sir aapke premium video aur normal me kya farak hai .
Aur sir aapke web development premium agar mai leta hu toh mujhe usme frontend ka aur backend dono sikhne ko milega?
But sir the end result with or without predefined function is same.. What's the difference you're actually talking about??
Great Sir Thank you.
thanks sir
Thankyou sir g...
sir , u didn't tell that if we don't include header file even then pgm will run.. but how??
Coz c and cpp have built for it
Predefine function ka use nhi kiye hai isliye not include string.h
bahut vadia sir g
sir windows mai ye code pr error aati hai for loop likha hai aapne waha l=0;s(l)mai s(l) mai error aati hai u try to use this as function aa rha
Sir yeh second loop samaj nahi aaya jab l/2 kar diya toh length half hoh jaegi to ab s[i] =s[L-1-i] seh kaise interchange hoh raha hai kyuki ismeh toh aapne 0 koh 7 seh replace kiya hai???????
sir, if a letter has only 7 character ,then..?
To ap khud se sochiye odd no. Ka middle character middle me hi rhega
Sir agar space hoga to... Kese reverse karenge
Sir pls make progrom to check whether paliondrom or not with function
All right sir but ...Aise me to L ki value 8 nhi 7 aa rhi hai...print kra ke bhi dekha hai maine.......
Sir me Ubuntu me programing karta Hoon ...to isme space print nahi hot hai ..suppose saurabh sukla.to saurabh ke baad atak jata hai..
Sir....why we have run the second loop upto l/2....i
Thanku Sir ji
i found a very easy way to do it ,. and it WORKS..
#include=1);
getch();
}
please reply sir ... can i do in this way
Brother ? Is program ko exam me use kar skta hun ??😊
char s[50],temp;
int start=0;
int end, l;
gets(s);
for(l=0;s[l];l++);
end=l-1;
while(start
After finding l we can also find it as for(i=l ; i>=0 ; i--)
{
printf("%c",a[i]);
}
🙏🙏🙏
Why haven't you use strlen() for string length?
He try to tell us , how we get length of string and reverse of string without using built in functions
Sir, jab apne first for loop use kiya h to s[l] ki value zero hone tak loop chalna hoga to for loop me for(l=0;s[l] =0 ;i++); q use nhi kiya ?
S[l]='/0';--------aai hoga(null) zero nahi hoga. But if it will be null then it will not consider the string after space.
🔥🔥🔥
Respected Sir,
You had not used s[l] !='\0' as a condition to find string length,why?
Sir,
for first for loop the condition should be like this right ?
for ( l=0; s[l] != 'null'; l++);
if it will be null then it will not consider the string after space.....
yes
remove space
for(i=0; s[i]!='\0'; i++)
@k p01 absolutely correct
wah sir ji
Sir ..which IDE you used for programming ??
Code block
Thanks sir❤️
First for loop. Syntax kaise valid hai????!!!
Logic behind for(l=0;s[l];l++) is not clear properly.:(
sir can we use strlen instead of for loop ??
absolutely yes,,
can we take it as (l-1)/2
draw a flow diagram to input your name and print it in reverse
why make extra \0 in it ....
sir,why have you taken main as an integer function here? you should have written void before main().
u can write anything void or int same function in program is there
Shashwat Yadav on pg
for(l=0 ; s[l] ; l++); //this line also use for int ??????
Sir ,u didn't use strrev() function.why?
This program is for reversing a string without using strrev( )
Sir codes ki forum file bhi link may dedegiye ..
Sir program turbo pr bataya kare please
I think it is sort of wrong to teaser a video in English and then have it in Hindi instead.
sir i reverse this way
int i,l;
char ch,s[20];
printf("enter which to reverse:");
gets(s);
l=strlen(s);
for(i=0;i
This code is actually complicated
Last Ka step I have. Not clear understand
l/2 q lagaya hai>>??/
main()
{ /* this is correct or not
char s[30]; to scan the string*/
printf("Enter your name");
for(i=0;s[i]!='\0';i++)
scanf("%c",&s[i]);
getch();
}
why you use gets()
It works like scanf function
Aap hmesha string ki length half krne ka logic lagate ho.....agar kabhi odd string aa gyi tab kya logic lgaoge
Actually sir explained it, if we divide 9 and 2, it will give 4, not 4.5 because both 9 and 2 are integers
@@vaibhavkrkm 👍
sir mene if condition se kiya hai
main()
{
char s[20];
int i,x;
printf("Enter Your Name: ");
gets(s);
for(i=0;s[i];i++);
for(x=i;x>=0;x--)
{
if(x>=0)
{
printf("%c",s[x]);
}
}
}
Sorry without function
Nekal pahali fursat ma nekal
Aapp ne job nahi chodna chaiye tha
/* program to reverse string without using strrev() */
#include
#include
#include
void main()
{
int i,j,len;
char s[100],temp;
printf("enter a string:
");
gets(s);
len=strlen(s);
i=0;
j=len-1;
while(i
please use english
Don't fucking title your videos in english and speak in another language!
Likhne ka tarika sudharo
thanks sir