Тёмный

Strings in C Programming | Part-2 | C Language Tutorial 

Naresh i Technologies
Подписаться 1,3 млн
Просмотров 847 тыс.
50% 1

Strings in C Programming | Part-1 | C Language Tutorial
C Language Tutorial Videos
** For Online Training Registration: goo.gl/r6kJbB Call: +91-8179191999
? Visit Our Website for Classroom Training:
nareshit.in/c-...
? For Online Training:
nareshit.com/c...
--------------------------
About NareshIT:
"Naresh IT is having 14+ years of experience in software training industry and the best Software Training Institute for online training, classroom training, weekend training, corporate training of Hadoop, Salesforce, AWS, DevOps, Spark, Data Science, Python, Tableau, RPA, Java, C#.NET, ASP.NET, Oracle, Testing Tools, Silver light, Linq, SQL Server, Selenium, Android, iPhone, C Language, C++, PHP, and Digital Marketing in USA, Hyderabad, Chennai and Vijayawada, Bangalore India which provides online training across all the locations
--------------------------
? Our Online Training Features:
1.Training with Real-Time Experts
2.Industry Specific Scenario’s
3.Flexible Timings
4.Soft Copy of Material
5. Share Videos of each and every session.
--------------------------
Please write back to us at us.training@nareshit.com/online@nareshit.com or call us in the USA:
+1404-232-9879 or India: +918179191999
* Check The Below Links*
? For Course Reg: goo.gl/r6kJbB
? Subscribe to Our Channel: goo.gl/q9ozyG
? Circle us on G+: plus.google.co...
? Like us on Facebook: / nareshit
? Follow us on Twitter: / nareshitech
? Follow us on Linkedin:
/ naresh-i-technologies
? Follow us on Instagram: / nareshitech

Опубликовано:

 

2 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 365   
@lavanyaramesh1241
@lavanyaramesh1241 7 лет назад
Sir u r really a living legend for me no one can make me understand computer better than u sir l....I luv ur teaching very much......infact I suggested many friends to watch ur videos sir hatz of to u sir..........
@himanshu6910
@himanshu6910 4 года назад
For more lecture you can refer to my channel
@kalyanghandge1362
@kalyanghandge1362 5 лет назад
#include void main() { printf("thank you sir 😍 ♥" ); }
@sairajmatkar
@sairajmatkar 4 года назад
Return 0;
@dxzfvzs8119
@dxzfvzs8119 4 года назад
@@sairajmatkar void != int
@prasadnarkhede1938
@prasadnarkhede1938 4 года назад
Error,,,,,, letter must be small
@chandrakantpatil2566
@chandrakantpatil2566 4 года назад
@@sairajmatkar good
@roganr5525
@roganr5525 3 года назад
@@chandrakantpatil2566 ok
@siddusmart1019
@siddusmart1019 4 года назад
sir in last session we had completed arrays. but we have types in it like 1-dimensional, 2-dimensional and multi-dimensional arrays, which includes addition and multiplications of matrices. if yes please add those videos sir. BTW ur teachings was awesom. thank you so much sir
@zakriabacha2477
@zakriabacha2477 6 лет назад
really sir u teach very clear and simple ,u are the best one ,i learn alot of thing from u,sir upload video for beginners ,may god success u in ur field
@Robin-ff9nd
@Robin-ff9nd 7 лет назад
Just watch the tutorials in 1.25 speed and he is the best
@veerasekharreddysomu2976
@veerasekharreddysomu2976 6 лет назад
Robin Jagal True bro I tried it.
@caothanhlong7577
@caothanhlong7577 6 лет назад
Good idea!
@Rahul-xc5qe
@Rahul-xc5qe 6 лет назад
genius.
@BABABOOWIE369
@BABABOOWIE369 5 лет назад
thank you so much
@TheSre007
@TheSre007 5 лет назад
1.5 or 1.75 , is good if u wanna learn quick af
@DailyCRINGEShorts
@DailyCRINGEShorts 7 лет назад
i am surprised to see only 14k views on his lectures.he is probably the most effective and best tutor of c language on youtube..views on his lectures must be in millions peoples are not aware about his lectures please spread these videos. great job sir.
@ramyaroy7808
@ramyaroy7808 6 лет назад
Ripul Rawat s
@HelpUtv
@HelpUtv 6 лет назад
70k
@juraijbinjamal5313
@juraijbinjamal5313 6 лет назад
Did yoy not notice the adds ?
@stashatstake
@stashatstake 6 лет назад
@@juraijbinjamal5313 hardly matters. Spend 10 seconds to get a good teach
@hanupawandwivedi6613
@hanupawandwivedi6613 5 лет назад
Correct
@mrahaman242
@mrahaman242 6 лет назад
Thank You sir... but sir if u add some program then we can learn better...
@vishwasmishra3448
@vishwasmishra3448 3 года назад
Very good explanation sir....highly recommended for beginners...,:)
@laveshpuraswani7027
@laveshpuraswani7027 4 года назад
Best teacher 😍😍
@rajankumar7601
@rajankumar7601 6 лет назад
U made programming in c ,easy for me.. tysm srinivas sir...
@khatariinsaan5284
@khatariinsaan5284 3 года назад
int main() { int m; printf("Wow Sir u r awesome"); } for(int i=0;i
@punnashivani779
@punnashivani779 3 года назад
Who r those 191 dislikes r they mentally handicapped or wat😒 Such a great teaching ur my life savior sir🙏
@dabhiankit3080
@dabhiankit3080 3 года назад
The best Programming teacher for me who explains and explains whole content in the single short lecture . Thank You Very much Sir for this kind of Hardwork...
@mamillamounika728
@mamillamounika728 6 лет назад
super explanantion sir.............
@NehaSingh-yj8fz
@NehaSingh-yj8fz 7 лет назад
Thankyou Sir for making these concepts easier.
@himanshu6910
@himanshu6910 4 года назад
For more lecture you can refer to my channel
@hrutikbhalerao
@hrutikbhalerao 5 лет назад
I had taken addmition for BCA 1
@newasamir5341
@newasamir5341 5 лет назад
i have a question for all what if we input more than 20 character i.e. krishnaprashaadkhandevgon. this name has more than 20 character. when we input more character than the size of array it prints it .WHY?????????? insted it should only print 20 character as array size is 20 only but it prints all character...WHY is that so????
@navalkishorsavita9722
@navalkishorsavita9722 6 лет назад
nice explanation
@adityajaiswal1254
@adityajaiswal1254 3 года назад
#include int main() { char a[2]; printf("enter your name: "); scanf("%s",a); printf("Hi %s, Welcome ",a); return 0; } Sir in this code, I have taken the size of array 2 and it is printing 4 characters "Hari". How's that possible?
@pallavimacherla806
@pallavimacherla806 4 года назад
Sir only we can consider 2046 in base address
@gurnoorsingh7210
@gurnoorsingh7210 4 года назад
%yes He is south indian Those who observed like::::
@yuganderu5645
@yuganderu5645 6 лет назад
HATS OFF SIR, LOVED YOUR EXPLANATION, THANK YOU SOOOO MUCH SIR
@shivacharan1015
@shivacharan1015 3 года назад
This guy is a legend.
@pavanshinde8154
@pavanshinde8154 6 лет назад
Q.)why there is no separate data type for strings in c? and why strings are treated as arrays of type 'char'?
@slobodantajisic2762
@slobodantajisic2762 6 лет назад
In this example char s2[4] = {'o', 'n', 'e'}, I think that we must write char s2[4] = {'o', 'n', 'e', '\0'}...
@pranjalpagaria322
@pranjalpagaria322 3 года назад
copiler will take null character by default thats why no need to write
@hruthikc.y4650
@hruthikc.y4650 6 лет назад
Superb explanations sir Ur teaching is helping me lot in learning CS thank you sir
@we_raj
@we_raj 4 года назад
Thanks sir 🙏🙏
@apoorbadash5062
@apoorbadash5062 3 года назад
Best teacher in c programming.... Thank you sir 🙏🙏
@arpitasarkar1789
@arpitasarkar1789 6 лет назад
Sirr please can u make video on cirular, polynomial linked list and complexity🤕
@B-Aparnasai
@B-Aparnasai 4 года назад
I watched your every video they are really worthy thank u sir
@InaamRehman98
@InaamRehman98 7 лет назад
good and helpfull lectures sir:-)
@himanshu6910
@himanshu6910 4 года назад
For more lecture you can refer to my channel
@cyberhifi2629
@cyberhifi2629 3 года назад
It help to understand the concept of character and string
@har0111890011
@har0111890011 6 лет назад
Thank you so much sir. Greetings from Egypt .
@himanshu6910
@himanshu6910 4 года назад
For more lecture you can refer to my channel
@manishpal1501
@manishpal1501 3 года назад
Are you really from Egypt? Pls tell
@tommystephen9146
@tommystephen9146 4 года назад
Sir, your way of explaining logic is the best I have ever seen. I have a question on reversing a string using while loop. Logic is okay. I did the program in code block , it does not reverse the string! 'one' is reversed as 'noe' and "sand" as "asnd", ie. ony the first two characters are interchanged. What could be wrong in my coding?
@PaulA-jo2tc
@PaulA-jo2tc 6 лет назад
Sir you are the best please post more videos like this
@nagendrababu6173
@nagendrababu6173 5 лет назад
Sir actually here we using hai Hari ,welcome will be output correct only but showing, enter ur name repeats output only display hai Hari , welcome y showing again enter u r name
@vegruchulu4266
@vegruchulu4266 5 лет назад
Sir,In scanf you said that variable name is enough which contains the base address,but when comes to printf why can't it print the base address of the string
@nr8547
@nr8547 5 лет назад
I wish he was faster , and had better pronunciation, besides it's great
@ramanareddy8586
@ramanareddy8586 5 лет назад
Sir I can't see this type of accurate explanation in c language. You are the best sir I can say proudly. Extremely extraordinary teaching
@himanshu6910
@himanshu6910 4 года назад
For more lecture you can refer to my channel
@ratnabhargavi8205
@ratnabhargavi8205 6 лет назад
Upto 5k likes only with 8 dislikes is fantastic I hv a doubt abt the 8 who disliked this video
@syamkumar9476
@syamkumar9476 4 года назад
Sir I enter the size of the string is zero. But in sf function I give my name as syamkumar and it can print this. How it happens sir and your channel is absolutely fine sir
@Shubham_30_12
@Shubham_30_12 4 года назад
Someone pls explain it too....
@marjunnaik1824
@marjunnaik1824 5 лет назад
sir u have told that in printf function ,we take that whatever present in printf within the double quotes it takes as string ,then what is the use of words present in printf
@shreshthjuneja9878
@shreshthjuneja9878 7 лет назад
Good explanation !!But Please use more examples 😊
@prafulmahindre64
@prafulmahindre64 6 лет назад
Shreshth Juneja grudp Garudpuran
@vidyashreechikodi2080
@vidyashreechikodi2080 4 года назад
Sir, ur videos r really very good. Could you please give some more explanation about y we don't use loops to read string.
@gihannimesh9193
@gihannimesh9193 6 лет назад
awsome awsome awsome!!!!!!!!!!!
@ankitkumarojha7510
@ankitkumarojha7510 2 года назад
thank u sir..you really do very hard work
@niteeshvanama4248
@niteeshvanama4248 3 года назад
#include Main() { char name[20]; printf("enter the name"); scanf("%s",name); printf("hi %s thank u very much sir😍😍",name); }
@pranavkulkarni7098
@pranavkulkarni7098 4 года назад
Sir you are saying no need to write &operator to read in the string because the string variable contains base address and automatically stores the value. But in the case of arrays, array variable also contains the base address than why are we writing &operator
@shobanas5032
@shobanas5032 4 года назад
What i think is....In array, it occupies 2 bytes so we have to pass tha address manually. But for char, of we know tha base address, so it can easily read no need to mention or pass it manually
@pranavkulkarni7098
@pranavkulkarni7098 4 года назад
@@shobanas5032 from my standpoint size doesn't matters at all because in both case we are storing only either it could be 1 or 2 bytes. In array we take a loop to read the number and use & operator to store the value . In the case of char we don't use loop and & operator doesn't matters. In array we know how many elements to read that is why we use loop there. In char we don't know the length that is why the loop doesn't apply. but my question is about both array variable and char variable contains base address than why we are using & operator in array only
@pranavkulkarni7098
@pranavkulkarni7098 4 года назад
@@shobanas5032 In video he is saying for char it goes and stores automatically than why doesn't in array?
@kaviranjitha6624
@kaviranjitha6624 4 года назад
In this section 70 video's there is no videos on Functions...??? Can you please anyone tell where it is...??
@nagarasu4820
@nagarasu4820 4 года назад
Sir:Hari is a value My mindvoice: is my brother a value
@ManishKumar-jc2su
@ManishKumar-jc2su 4 года назад
Sir why u always say eterator instead of loop
@aparnagandi116
@aparnagandi116 3 года назад
Superb explanation sir ... I'm impressed by your explanation.... 🙏🏻🙏🏻
@veminenisumanth4657
@veminenisumanth4657 4 года назад
It's amazing sir, you explaination is marvelous no one can explain like these..your teaching made students very enthusiastic .thank you sir for providing such a wentastic teaching.
@himanshu6910
@himanshu6910 4 года назад
For more lecture you can refer to my channel
@funkyprogrammer2996
@funkyprogrammer2996 Месяц назад
sir, you wrote name of all 3 string video wrong PART 1 is actually PART 3, PART 2 is actually PART 1 and PART 3 is actually PART 1
@adityakhare8942
@adityakhare8942 2 года назад
Sir You have given such great lectures on C, you explain every concept step by step and also all the small details, Thank You very much Sir for these lectures💯💯💯
@siddhantshrivastava1690
@siddhantshrivastava1690 5 лет назад
Can you say "Enter enter your name in 20 characters?" , No.. "Impossible case" xD
@sammygamer5733
@sammygamer5733 3 года назад
😂😂
@ombhilpawar9561
@ombhilpawar9561 4 года назад
Dude you are nice...!!!
@andresrossi7951
@andresrossi7951 Год назад
Can't believe, I've found the meme! INTERNAL POINTER VARIABLE... WHAT IS THIS? INTERNAL POINTER VARIABLE
@aditya_bhadouria
@aditya_bhadouria 5 лет назад
if we ask about size of string in s1[ ] = "Hari" what will be the answer
@nandukumar394
@nandukumar394 7 лет назад
please please reply me sir
@kondaveetivamsi421
@kondaveetivamsi421 4 года назад
Excellent information sir.... thank you for sharing this kind of valuable information sir..🙏🙏🙏🙏.......
@itsheaven5701
@itsheaven5701 6 лет назад
Sir u are great..... U help a lot of us... Your way of teaching is great...tysmd Sir ...i go through with all of your c videos and have a clear concept on C
@ratnabhargavi8205
@ratnabhargavi8205 6 лет назад
Actually i didn't understand c while reading the text book But now i understand clearly Ur teaching is xcellent osm All d best 4 ur bright future
@prasadshingne6992
@prasadshingne6992 Год назад
Part 1 on strings handling
@prabuddhalamichhane6597
@prabuddhalamichhane6597 4 года назад
After watching his videos, not understanding, IMPOSSIBLE CASE.
@SnivasSnivas
@SnivasSnivas 4 года назад
Hari is Your son Right?
@riturajpurkayastha1774
@riturajpurkayastha1774 6 лет назад
sir,you are the best teacher of C programming.There is no doubt,excellent sir
@himanshu6910
@himanshu6910 4 года назад
For more lecture you can refer to my channel
@rajubai2372
@rajubai2372 6 лет назад
sir pls reply, i am giving array size [5]. bt i can able to scan and print more than 5 numbers of character. y?
@Shubham_30_12
@Shubham_30_12 4 года назад
If anyone knows it pls explain....
@saivarshithchanvelly1484
@saivarshithchanvelly1484 3 года назад
The vedios in the playlist are in order. In this playlist, string part-2 is of the 3rd vedio. And string-1 is somewhere else.
@yugandharchaudhari1376
@yugandharchaudhari1376 4 месяца назад
4:39 you’re looking for
@srinuakula6123
@srinuakula6123 5 лет назад
Great job sir U are the best when compared to other lecturers
@jurgenpopodopulus5006
@jurgenpopodopulus5006 4 года назад
great videos, I love them. My teacher isn't so good in explaining, that's sad, I want to become a great developer. So thank you!
@pranjalpagaria322
@pranjalpagaria322 3 года назад
i have one doubt what if we write 18:50 sf("%d",arr[i]) as arr has base adress so it will move index . What is the need of & operator their.
@shaiksajeda7969
@shaiksajeda7969 5 лет назад
Sir in array also we can write Int arr[50],n; Pf("enter n value: "); Again in strings we are doing the same what is the difference sir? U said we cannot write & in scanf as we are giving name[ ] if we give s1[ ] then?
@dharaniidharkatikaneni4973
@dharaniidharkatikaneni4973 3 года назад
Do u know now pls explain me Im having same doubt
@arpansarma7280
@arpansarma7280 4 года назад
Sir is beneficial only when we watch in 1:75x
@9a56mahabirjaiswal9
@9a56mahabirjaiswal9 5 лет назад
Sir l did not know anything about C or any computer programming .But l want to know is this video will help me to learn from basics ,i.e,from 0 level
@tejaswinikasinadhuni5231
@tejaswinikasinadhuni5231 4 года назад
You have to start from the beginning
@utkarshbisht7273
@utkarshbisht7273 4 года назад
tysm❤️❤️❤️
@KalyanS
@KalyanS 4 года назад
good one but i feel it is slow. over all nice explanation.
@bijayalaxmipatra2974
@bijayalaxmipatra2974 3 года назад
Name =Hari Sir pranam ,sir you use in printf name =%s ,so in console it is printing name =Hari
@sharathkumarr446
@sharathkumarr446 3 года назад
why should we take 2046 can we take any numbers??? or only specified numbers
@sharanya1543
@sharanya1543 3 года назад
We can take any value it's just a address num
@VinaySharma-zu8ru
@VinaySharma-zu8ru 6 лет назад
reduce ads please
@sheebaedwin7076
@sheebaedwin7076 4 года назад
Why "Hi and welcome is not taken as string"
@abhijith1136
@abhijith1136 5 лет назад
Very good lecture
@mahalakshmijallepalli9180
@mahalakshmijallepalli9180 2 года назад
Sir could you please tell me about decision making statements
@DoubtedBuddy
@DoubtedBuddy 5 лет назад
yes he is one of the best everyone must watch his videos
@himanshu6910
@himanshu6910 4 года назад
For more lecture you can refer to my channel
@ctutorialbynaziasohail
@ctutorialbynaziasohail 4 года назад
Also keep watching C# tutorial for beginners by NAZIA SOHAIL
@tukus_technology
@tukus_technology 2 года назад
I loved the way you teached . Please sir I request you to teach in our college please
@Praduman_kumar
@Praduman_kumar 4 года назад
#include #include Void main() { char name[20]; Int I=0; Printf("enter any char"); Scanf ("%s",&name); While(name[i]!=0) { i=i+1; } Printf ("%d",i); Getch(); }
@shaileshkumarshetty4401
@shaileshkumarshetty4401 6 лет назад
why is your channel ot verified by youtube?sir....?
@cyberhifi2629
@cyberhifi2629 3 года назад
Sir u r great
@tejarockzz4462
@tejarockzz4462 6 лет назад
Nice but I want the string program in system
@ajjunikhila
@ajjunikhila 5 лет назад
Super
@abdullahalnaseeh
@abdullahalnaseeh 4 года назад
I like your teaching techniques,thnkx.. it is much more appreciated
@himanshu6910
@himanshu6910 4 года назад
For more lecture you can refer to my channel
@manaskalita5091
@manaskalita5091 6 лет назад
sir what happens when the char array we input exceeds the limit of the char array??as in case of integer we can specify the last node with the for loop.. if we type my name and it is more than the array size then what will happen??
@owaissiddiqui9077
@owaissiddiqui9077 5 лет назад
it wii accept the input but the output will be of specified size of the string.
@gireeshbhat4158
@gireeshbhat4158 3 года назад
What is the output for #include #include int main () {printf("%d",printf("s","Hello world")); }
@pranjalpagaria322
@pranjalpagaria322 3 года назад
i have one doubt what if we write 18:50 sf("%d",arr[i]) as arr has base adress so it will move index . What is the need of & operator their.
@aworld5308
@aworld5308 3 года назад
Thanks sir
@lakshmi9785
@lakshmi9785 4 года назад
Why it is one dimensional, two dimensional also done by string
@saijayanthgopalapurapu8563
@saijayanthgopalapurapu8563 5 лет назад
hai, sir small dout sir actually m created new file sir after that I entered data that is 1.ramu 2.raju 3.raje 4.jaya 5.rake after compile and run i was getting all of these data sir... nw the problem is i want only 1.ramu sir what can i do sir @ @ int main() { FILE *fptr; char filename[0]; char ch; fptr = fopen("program.txt", "r"); if (fptr == NULL) { printf("Cannot open file "); exit(0); } ch = fgetc(fptr); while (ch != EOF) { printf ("%c", ch); ch = fgetc(fptr); } fclose(fptr); } this is the program sir ...
@souravpandey1982
@souravpandey1982 4 года назад
U r amazing sir