Тёмный

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

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

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

 

18 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 174   
@NareshIT
@NareshIT 5 лет назад
Please Comment, Subscribe and Click Bell🔔🔔🔔 Icon for More Updates. To learn software course from our experts please register here for online training: goo.gl/HIB0wL
@sachindandge764
@sachindandge764 7 лет назад
I got More knowledge in Naresh IT than got in my engineering college...thanks Naresh IT..
@amaama2137
@amaama2137 6 лет назад
Agree!
@muralisahu1909
@muralisahu1909 5 лет назад
Jim
@manuj9570
@manuj9570 5 лет назад
@Mahalakshmi E check out his playlist
@madansshetty6063
@madansshetty6063 3 года назад
Me too
@nobodyhere8057
@nobodyhere8057 3 года назад
Same here bro , in my case our sir shares links of naresh it sir 😂😂
@stnsharif2528
@stnsharif2528 6 лет назад
Naresh technologies lectures best then in my engineering college
@--Asha--
@--Asha-- 6 лет назад
Sir is best
@jinavlog811
@jinavlog811 3 года назад
I love when the teacher said "Sir, I don't know what/how.....?, No problem. See"
@ruturajjadhav8905
@ruturajjadhav8905 4 года назад
This Person just reads my mind.... He just answers the doubts I get.
@tapasideb7313
@tapasideb7313 4 года назад
Thank you sir ... I am completing my syllabus of C programming now . I m a student of mathematics. And in this sem a new sub C Programming is added to our course .And I have no privious knowledge in any computer language. So I was so nervous and depressed.But your classes gives all the basic concepts very clearly and now I am doing my syllabus complete . Thanks again sir..thank you so much
@peerless3538
@peerless3538 3 года назад
Umm umm I am too...🥺
@csforcommonsense3360
@csforcommonsense3360 4 года назад
#include void main() { char a[5]; printf("enter the comment"); gets(a); printf("%s",a); } o/p: superb explaination
@suryapadala54
@suryapadala54 4 года назад
A man ur out put is supe ....but this is not kitchen classes
@saivishwanath3512
@saivishwanath3512 4 года назад
In console window,o/p will be only 'super'.Since,you have given the array size as 5 and it won't accept 'superb explanation' as it's size is more than 5!
@csforcommonsense3360
@csforcommonsense3360 4 года назад
Tq friends if you reply like this about concepts then u will remember for longer time ..😀
@meherali4073
@meherali4073 3 года назад
Sir, just for fun i have written this:- #include int main() { char name[50] = "meher ali"; unsigned int len; for(len=0; name[len]!=' '; len++); printf("%d", len); } Output: 5 Because i wrote 'space' in for loop... It's is for fun only. 😛😛😛 You are great teacher and i learnt from you many things thank you
@hrithicksen3644
@hrithicksen3644 5 лет назад
3:34 There is also a way to use the scanf() function. - scanf("%[^ ]", Stringname); - That means it will accept all the values except the new line. - scanf("%[A-Ba-b ]", Stringname); - That means it will accept all the values from A to B, a to b and the space.
@rajkush319
@rajkush319 4 года назад
but should be in single cot like ("%[^' ']s",StringName)
@akhileshhiremath808
@akhileshhiremath808 4 года назад
Thanks bro
@vamshisurya2991
@vamshisurya2991 4 года назад
@@rajkush319 I think its also works without quotes
@shivammathuria1722
@shivammathuria1722 4 года назад
mr srinivas sir thank u so much for this lecture series...my whole hearted gratitude for u sir! Ur work is priceless
@zakriabacha2477
@zakriabacha2477 6 лет назад
sir make more video for beginners ,your way of teaching is veeeeeeeeeeeeeeeeeeeerrrrrrrrrrrryyyyyyyyyy best>
@rhevanthmahadev9229
@rhevanthmahadev9229 6 лет назад
scanf can take input with a space. We have to use %[^ ] instead of %s, so that scanf considers spaces, but stops taking input when we press enter.
@peerless3538
@peerless3538 3 года назад
Hey really? 😃
@AbhiKumar-ji7ol
@AbhiKumar-ji7ol 3 года назад
Keka sir meeru 👍👍
@Dontpushyour_luck
@Dontpushyour_luck 4 года назад
Do you have a compilation/playlist of all the C language videos you have on your channel? It would be helpful to everyone
@jru5252
@jru5252 5 лет назад
Great videos on strings and string handling in C. Although gets() is always giving me an error that it is unsafe so instead I am using scanf(" %maxLength[^ ]", arrayName)
@anishdey9896
@anishdey9896 3 года назад
Thanks sir. Your lecture is really easy to understand. once again thank u sir
@souravsarkar8594
@souravsarkar8594 5 лет назад
thank you sir for your very detailed discussion, it was very helpful to understand the concept.Keep on your good work .
@rakeshchunduri401
@rakeshchunduri401 4 года назад
Sir u have to use %u because u declared unsigned integer
@sricharannaga474
@sricharannaga474 6 лет назад
we can even use %u for length as an access specifier instead of %d
@sullurukiran4865
@sullurukiran4865 6 лет назад
Sri Charan Naga %u is used to unsigned integers only..
@bhanuboina5596
@bhanuboina5596 4 года назад
@@sullurukiran4865 here we used unsigned integer so I think we have to use %u only
@varunr8375
@varunr8375 3 года назад
@@bhanuboina5596 yess is it correct then??
@shubham_skadam
@shubham_skadam 4 года назад
srinivas sir, you are by far the best teacher in C programming,
@jashanveersingh252
@jashanveersingh252 3 года назад
your the best
@bollepallyshrecharan5226
@bollepallyshrecharan5226 3 года назад
Sir i am able to understand topics but when i try to do a progrms i am not able to write progrm but understanding concepts is ok
@v.g.bright2874
@v.g.bright2874 5 лет назад
Thanks sir for excellent job.
@sudhansumtripathy
@sudhansumtripathy 5 лет назад
sir thank you so much for this simple way of teaching
@aafreenfatima1805
@aafreenfatima1805 6 лет назад
thnx a lot sir. .love from uttarakhnd...😊😊😊
@anitathakur4590
@anitathakur4590 7 лет назад
excellent job sir
@mathurirajabhalu4824
@mathurirajabhalu4824 4 года назад
Starting my CS degree next month but still considering if I should just learn from him🤣
@EBKCS_MOKSHASHARMA
@EBKCS_MOKSHASHARMA 4 года назад
really sir I never understood c in my college but now if time get back I m the genius of programming in my class cz of you sire.
@ads6830
@ads6830 5 лет назад
even our college didn't taught this much better.i can completely understand .
@prasaddhend7983
@prasaddhend7983 4 года назад
sir in string length function we will usr na len=strlen (name); for (i=0:i
@vanshchauhan3910
@vanshchauhan3910 4 года назад
Amazing lecture !
@shankhaneeldutta4617
@shankhaneeldutta4617 2 года назад
I will be coming to meet Mr Srinivas sir after my graduation to thank for his tremendous valuable lectures !
@abdarkhadartahlilabdirrham1597
greate explanation sir you are the best c programming teacher you tube tutorial one suggestion sir make the tutorials series means give them parts1 part2 as on
@kamalmukhiya8455
@kamalmukhiya8455 3 года назад
such a nice way to teach.............
@Mr_Asif07
@Mr_Asif07 3 года назад
Program is correct Put starting #include
@harikrishnas5743
@harikrishnas5743 3 года назад
This is the 1st time i get a chance to c my name as example!!!!
@maheshfollowing
@maheshfollowing Год назад
You are super and excellent Sir
@nagarajumoka8492
@nagarajumoka8492 3 года назад
Array also holding base address right?....then why we are using address in scanf function?
@Vijaykumar-ey8om
@Vijaykumar-ey8om 3 года назад
#include main() { char z[100]; printf("Enter a string "); gets(z); printf("The string: %s ", z); }
@shaikimtiyaz4226
@shaikimtiyaz4226 3 года назад
Most usefull channel and mind-blowing explanation sir..👌🏻👌🏻👍🏻👍🏻
@zakriabacha2477
@zakriabacha2477 6 лет назад
please upload more video on these topic ,tricky question ,mcqs ,technical ,for beginners to help them.we only learn from u ser
@sonalirajak227
@sonalirajak227 3 года назад
I wish u could come to my home and teach me Then I will be a genuis in all languages 😂
@nagulapatipoornasaipavanku1169
Sir, it's GOOD,but all the videos are not provided in this channel.Videos on operators is missing and the videos are not in a proper sequence.Strings lecture is before Arrays.Please VERIFY.
@Babitha_banagani
@Babitha_banagani 4 года назад
@Kamran go to naresh i technologies playlist and u can find c programming videos in sequence
@venkatasreekanthreddy5735
@venkatasreekanthreddy5735 5 лет назад
We can't use gets because of it is dangerous..!! If u want to read string including spaces us while reading string in scanf("%[^ ] s", string name) ;
@akhileshhiremath808
@akhileshhiremath808 4 года назад
Thanks bro
@vamshisurya2991
@vamshisurya2991 4 года назад
can we use all other types of escape characters in these specifiers?
@dhruvilkumar3577
@dhruvilkumar3577 2 года назад
11:57 %d format specifier also true but for better practice we need to use %u
@maheshbabukamepalli3488
@maheshbabukamepalli3488 2 года назад
strlen() will also include(in video it is told as exclude) the space into the count of length when we give input with gets()
@ashwinikheersagar372
@ashwinikheersagar372 2 года назад
Exclude null character, not space
@johngichuki8338
@johngichuki8338 6 лет назад
I really liked the tutorials As a Beginner the Videos are of great help keep up Krishna
@kritisharma3072
@kritisharma3072 5 лет назад
Thanq so much shrinivash sir for ur classes. The way u explain everything is owsm anyone can understand. I would love to learn more in detail about c n programming. I need ur help for my upcoming exm in jun month it ( c language n ict) please can i have ur no to have a guideline for my preparation please show me the way how to communicate with u.
@gokulraj5453
@gokulraj5453 5 лет назад
Hi sir In the last question u used unsigned int since length is +ve Then why %d I think %u is right
@youcefsad2350
@youcefsad2350 4 года назад
because length is going to be + anyways both are correct
@ninad1902
@ninad1902 4 года назад
Because %u is a unsigned decimal integer but the length will not come in decimal value (I might be wrong)
@satish6908
@satish6908 7 лет назад
sir in the above program using unsigned int len but while printing in the program using %d formate specifier. so instead of using %d %u format specifier writing is correct or not in the data types concepts u say that unsingned int format specifier is %u. so which formate specifier i have to write? in the above question. thank u.
@Vaibhav_Kumar_2003
@Vaibhav_Kumar_2003 7 лет назад
ya you are right
@--Asha--
@--Asha-- 6 лет назад
I have the same question,bro.
@ashmanjagdev7238
@ashmanjagdev7238 4 года назад
paji rikshaw kithe laya
@rajeshpuli3765
@rajeshpuli3765 5 лет назад
super super superb teaching sir
@arpanmishra8548
@arpanmishra8548 7 лет назад
timing 4:15 sir you can say that get s will read all the character array until you press the enter. either it will space character or special character.... but, at 4:57 you say when space is consider between hari krishna it will not considerd........so, how we differentiate from scan f.
@mohammedrahman8796
@mohammedrahman8796 2 года назад
sir, can you make video on deletion of element in array
@minadas3804
@minadas3804 4 года назад
Most important thing is you also tell step by step and tell what happened to console.
@gayathrik8166
@gayathrik8166 2 года назад
Sir please explain the use of strcpy, strcmp, etc
@mahapathi9090
@mahapathi9090 3 года назад
Awesome lecture sir
@Vijaykumar-ey8om
@Vijaykumar-ey8om 3 года назад
#include main() { char Str[1000]; unsigned int len; printf("Enter the String: "); gets (Str); len= strlen (Str); printf("Length of '%s' is '%d'", Str, len); } RUN THIS THANKS ME LATER
@jayaramalukunta720
@jayaramalukunta720 3 года назад
It is better understanding while all videos are exucute in computer also
@nikhilsethi8745
@nikhilsethi8745 5 лет назад
Wap in c to enter a string and convert it in toggle case without using string.h
@EternalBlaze10
@EternalBlaze10 5 лет назад
very easy . Just use the ASCII values operations
@vimaladhulipalla9489
@vimaladhulipalla9489 3 года назад
Nice sir
@suprajaakuthota4850
@suprajaakuthota4850 6 лет назад
Sir your way of teaching is awesome sir could you please make the videos on switch and do while loops
@ayushtiwari8095
@ayushtiwari8095 4 года назад
Very well explained
@ankitkumarojha7510
@ankitkumarojha7510 2 года назад
thnk u sir
@kumaraswamy6442
@kumaraswamy6442 6 лет назад
Sir you are the perfect lecturer
@Understanding_the_world_withme
@Understanding_the_world_withme 4 года назад
Thank you very much sir..
@tapanjeetroy8266
@tapanjeetroy8266 6 лет назад
thanks for your valuable support
@vasanthigovindulu2669
@vasanthigovindulu2669 6 лет назад
Hi sir, your way of teaching is very good . please upload like CATIA software like plz ...It is necessary for us sir
@shashankkabbin2646
@shashankkabbin2646 5 лет назад
sir if I want to type a paragraph then when I press enter key to go to next line, then gets() will stop receiving my data right..?
@sunnat-e-muhammad1
@sunnat-e-muhammad1 3 года назад
Sir,is it important to write unsigned int type
@vedantnautiyal7983
@vedantnautiyal7983 5 лет назад
Dear Sir ,please tell me the reason why space put before %s specifiier while putting in "" scanf(" %s")
@hangoutbuddy
@hangoutbuddy 7 лет назад
Very nice explanation.
@elwafi2001
@elwafi2001 5 лет назад
Very very very good lessons
@DeepakKumar-nz6ug
@DeepakKumar-nz6ug 5 лет назад
If ,I am using gets funtion to read all char even space and sentence etc also but after it string size changed ,it is necessary that new size of string is define in string or not.
@poojajagtap7349
@poojajagtap7349 3 года назад
Super
@naveenrayala8475
@naveenrayala8475 5 лет назад
awesome explanation sir thank you
@jeevangowda3309
@jeevangowda3309 3 года назад
Sir ur saying wrong strlen() function counts including null character it counts from 0 to 9 not 1 to 9 .bcz of this when I am watching the 3 part of string to reverse the string I am not getting output I have check code and entered everything like u said but the one thing u said wrong about this strlen() by using this it swaps the null charater also so we have to use strlen()-1 then null will not Swaped.
@itsheaven5701
@itsheaven5701 6 лет назад
Such a great expplain on string
@sravanichenchangari6737
@sravanichenchangari6737 6 лет назад
thank you sir
@tejaswaroop4917
@tejaswaroop4917 6 лет назад
Thank you, Sir!
@sanjoymondal2698
@sanjoymondal2698 7 лет назад
Very good.
@vinay7595
@vinay7595 6 лет назад
nyc expalination ia tq.......
@akshugrakshu3010
@akshugrakshu3010 4 года назад
Tq sir
@balasaravanasiddagunta4177
@balasaravanasiddagunta4177 4 года назад
while using 'gets()' a warning is displayed on the console screen as 'gets' is a dangerous function and should not be used. Instead of 'gets()' we are asked to use 'fgets()' and 'puts()'.
@anithachandala6602
@anithachandala6602 4 года назад
Why gets() function is dangerous..you said gets ()is executed until you press the enter key..but when we need to read a paragraph..if we press the enter..it will stop execution...give me solution sir
@narendernakkalapally8448
@narendernakkalapally8448 5 лет назад
Sir explain string manuplating functions
@Satisfying_shorts_india
@Satisfying_shorts_india 6 лет назад
Thanks sir
@souvikroy7113
@souvikroy7113 5 лет назад
Make lectures on 2D array also please
@vishnuvandanapyatla2888
@vishnuvandanapyatla2888 4 года назад
Can u upload Octal to binary conversion
@lakshmishiv5013
@lakshmishiv5013 5 лет назад
👍super sir
@keerthiprasad3413
@keerthiprasad3413 5 лет назад
Good
@nees4636
@nees4636 4 года назад
sir...will we need to include any library function to use "gets".....???
@jatinaggarwal9965
@jatinaggarwal9965 4 года назад
No
@dr.engineer1745
@dr.engineer1745 6 лет назад
Write a C program to concatenate two strings without using in built,can u explain for this question
@b.v.vsatyanarayana7410
@b.v.vsatyanarayana7410 3 года назад
Sir, sorry to say that , introduction ourselves just use IAM or my name is these two words are formal,'this is ..' is used for only non living things plz forgive me sir ....
@zakriabacha2477
@zakriabacha2477 6 лет назад
dear mr srinvas on evary topic give logical question
@srinivassai7926
@srinivassai7926 6 лет назад
is it possible to change lines while using gets() ?/
@shirankr1938
@shirankr1938 5 лет назад
Kidu😍
@parashdas8674
@parashdas8674 5 лет назад
Sir space is also a character so why can't we use single %s in scanf
@chandanakavala4876
@chandanakavala4876 2 года назад
Sir doubt headfile string.h ivakapoina parledha
@ManishKumar-mi7ko
@ManishKumar-mi7ko 6 лет назад
you are god
Далее
Structures in C | C Language Tutorial
25:44
Просмотров 946 тыс.
Strings in C Programming | Part-1 | C Language Tutorial
33:34
БЕЛКА РОЖАЕТ? #cat
00:26
Просмотров 571 тыс.
ХИТРАЯ БАБУЛЯ #shorts
00:20
Просмотров 1,3 млн
Ice Bear would appreciate some cheese 🧀
00:18
Просмотров 13 млн
Strings in C Programming | Part-2 | C Language Tutorial
21:20
Dynamic Memory Allocation | C Language Tutorial
22:38
Просмотров 700 тыс.
#21 C Strings | C Programming For Beginners
10:13
Просмотров 132 тыс.
Size of Pointers | C Language Tutorial
17:12
Просмотров 395 тыс.
C_62 Strings in C - part 1 | C programming tutorials
15:41
realloc() | C Language Tutorial
12:55
Просмотров 217 тыс.
Data Types in C - Part 1 | C Language Tutorial
13:30
Просмотров 1,1 млн
БЕЛКА РОЖАЕТ? #cat
00:26
Просмотров 571 тыс.