C_66 Program to Find Length of a String | C Programming Language
Vložit
- čas přidán 27. 08. 2024
- In this lecture we will discuss a C program to find length of a string.
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
I have never thought that a youtuber would seriously have an impact on my Data Structures... *"THANKS ALOT MA'AM* 🙏🏼
#include
#include
int main(){
char str[60]="Mam you look soo beautiful"
gets(str);
printf("%s,str);
return 0;
}
😄
Mam would be sad on your mistakes....gets is used as scanf, so why do you are using it as you aren't taking input from the user?
Why are people obsessed with her looks, just be obsessed with her knowledge and kindness to help us. She also expect it only from us🙏🏾
Best CZcams C-Programming teacher! :D
We want notes mam for c language it is so helpful for us and congratulations for 500k 😍🎉🎉🎉🎉
Hello Ma'am.
Thanks very much for your brilliant ideas. I really do appreciate your efforts.😊😊
But there's this small worry I got last week that I'll like to share with you. I was asked to read strings each seperated by a space.
And the word "STOP" marks the end of the string
Thanks mam.
Plz complete this C language series mam. These are very helpful. And I want to start DSA after this.
Awesome Mam ....I m from Mechanical Domain and I have move to IT ...your vedios are helping me a lot to clear my concept
Interview tip::
we use for loop when we know value of n
we use while loop when are not sure about value of n
Thanks 🦅❤
@@manojrajput9930 kyu ji while mai vi toh condition check hoti hai .. .. ..
Mam, since you are taking an int main(), so you should return some integer value to the compiler.Nice lecture
yes!!
Mam your videos are really helpful and I really want you to please cover all the topics of c with some programs in the same way as you have done in array,strings
One thing more after C completion pls upload 2-3 video of simple project in C.
Mam keep going on mam soon 1 million ki family banne waleeeho
Man can you take classes on interview preparation data structures Algorithms as well please ?
Hello ma'am, can you upload all lectures in 2-3 days. Because my data structure & algorithm classes start from 3 August and requirements C language. So I humble request you.
Back to the basics! Nice explanation. Do we need two variables count and i? Why can't we use single variable?
not need, we can use only count or i 🙂
So that the next one can distinct the usage of count and i clearly.. as if you only use i, then it may cause confusion
Your video is very helpful mam. Your videos helped to find reason of every word showing on the screen.
I have seen many videos but no one nor my teacher really explains about how characters, digits are stored in memory or about index value. Mam, please upload some video of java also.
thanks mam, smile & punches missing in vdo, i saw mostly all, u r so professional
Thank u so much mam
ma'am please make a vedio on string functions like strtok,strnlen ,strncmp.
Ma'am can you please teach Recursion of function in C
Using for loop -
#include
void main()
{
char name[30];
int count=0;
printf("Enter a Name ");
gets(name);
for(int i=0;i
It's Very useful ☺☺
Madam please do video about string length using call by address
Very good
Awesome class
Ma'am gets() is removed from the library. How to use fgets()?
In case if length of the string is 100000000000 ,then loop will have to run length times and performance will be worst .
Can't we loop till string length by 2 and for each iteration we swap with last and first element ,and foe next iteration we swap first+I with last-i.
This way we have to loop only length/2 and using swaping string will be reversed .
Next variant is we can use stack to reverse the string as stack is very fast coz it's maintained in main memory so it may up the performance than both approach .
#include
int main(){
char name[10];
printf("enter name:
");
gets(name);
int x=printf("%s
",name);
printf("%d
",x);
printf("Thank you %c",(char)2);
return 0;
}
/ * you can try this * /
Count length of a string 👇 czcams.com/users/shorts1IzNBx05vkA?si=Sm1DNTDVqqagNWa0
9:38 mam for loop is better then other 2 loop
Thanks for your efforts mam
Tomorrow my exam and now I'm doing 7 th assignment from your lecture.... thanks 🙏 mam ❤
Hello ma'am please make video on bitmasking in c
Main point for mam she doesn't tell to like their video and not tell subscribe her channel.... it's good thing to compare of other channel.
Mam You Are Great Mam , Thank YOU so MUCH mam , Even I am Biology Student , I can Understand programming, its all Because of You
THANK YOU MAM
KEEP ROCKING MA'AM
Upload daily 5 videos mam, I don't have time, next year I will start one startup company
Mam...will u plz explain why do we use null character in string!?..
Like u told u will explain 😅
And fgets function also!
Just Because to terminated the string .
If we are not using null, then some garbage value will be shown in output
The program "With our own logic" could be simplified. Since the variables count and i have always the same value, using only one of the variables would be enough.
int main()
{
int i = 0;
char name[30];
printf("Enter name: ");
gets(name);
while(name[i] != '\0')
{
i++;
}
printf("The length of the string is: %d", i);
}
I too thought that
@@thilakparamasivan8409 I think she know that but made it with two var make it easy to understand the index
Skip 1:26 to 3:04.
u r a time saver for me man
@@jeevaad6615 Thanks sis
Ma'am, make a program to count the frequency of character in a string !
a data scientist from kenya🖐you teach better than my lec mam
Thank you mam 😊
Maam aap sanskrit bhi padhayeee tho bhi mai din raat tyaar hun apki class attend krne ke liye..... Pr aap video bnana kabhi band mt kijiyega.......
Right bro😅😅😅
Ma'am when are you going to start python series?
CZcams recommended me
thankyou ma'am 🙏
Lot's of love and blessings from shraddha.
Ma'am if possible will you please make video on how to install ide.
❤
what if there is space between jay anti but still i want the output of string length as 7 is it possible mam??
Not able to focus on subject 🙄🙄
Goli beta masti nahi
Tu iss man ka daas na ban iss man ko apna daas banale 🗿
@@IndianSubmarine804 🐐 rohith sir
Poduko emundile ika 😅
@@riteshbisht94 😏😏
Madam Please DBMS Ka Hindi me lecture banaye
Perfect teacher doesn't exi.. 🙄
Thank you mam
Came to say I love you mam.. I am NULL .. Need a next or may be both pointers..
Thanks medam
superb
Ma'am u said that length of the string is number of characters +1 ...but in strlen..ur saying end of the string
Hello mam please make a video on preparation plan for GATE exam from the b.tech 1st year
Please make a video on it
yeah its important mam
😗....😁 by the way thank you so much...
Mam please do video on memmove(), memset(), memcpy()
char str[]={'a','b','c','d',' ','e','f','g','h'};
what is the length of above string??
strlen(str)=???
9
We can do it without using count right, just using i ..........
Hello Mam, I am working in IT company in cyber security domain. I need to audit code for possible vulnerabilities. Please make videos on below topics.
1) Double pointers
2) Pointers to structure
3) Pointers to arrays
4) Dynamic Memory Allocation and deallocation.
if(jenny == beautiful){
cout
Mam please run this with for loop also
helpful video
Write a C program to find first occurrence of a word in a given string.
Ma'am please aap Binary tree ke deletion and searching ka bhi implementation ke lie video upload karona
can anyone help me telling how to use for loop and do-while loop in this code?
Can canyone tell me while we use puts() in place of gets(). It is not printing lenght of string and it is printing any other string that I had not entered in input
mam,how can the string use in function?
how to pass the array in function?
Jo without user-defined function se wount krne wala tha....usme count ko q increment kiya gya haa ??? Koi batao i ka increment samaj mei aaya
Mam your dress is soo nice👌👌
Mam when will you finish the c language (How many days/ months) and start the other topics.... Mam please reply to my comment....
please teach us e&tc subjects
Mai fir Jenny mam ki video dekhne aa gya ..... Har pal sochta hu cs se btech kyu nahi ki 😭😭
ok
For some reason mine is showing len 0.
size_t strLen = strlen(palavra);
printf("Size of String >> %zu", strLen);
mam %d ta %s hoga . on the 1st Program
When Python ?
17:09 if we use puts() function then why we are using gets() function ?? PLEASE REPLY
puts( ) is for printing the string and gets( ) is for getting the input from user
@@ganeshmahajan8695 Thanks for solving my doubt
@@ganeshmahajan8695 I cannot understand the use of null pointer .. If we use null pointer then also if program is crashing then why to initialize ptr with null pointer ? Can you say me this ans
@@ParamitaDey-bi1mg Did u get the answer?? 😒
@@higgsboson67 I don't know exact answer but I think null pointer is used so that we can check whether program can run or not
Mai share market Mai trading karta Hu ,Mera age 21 hai lekin Mai coding Ka vedeo Dekh Raha Hu kyuki ye Jo teacher hai inke English bolne Ka tarika mujhe bahut bahut pasand ,mujhe English utna nhi hai ata hai lekin samjh Jata Hu Thora bahut Ulta sidha samjhta Hu😀😀😀😁,mujhe sirf inke English sikhna hai has coding mujhe samjh nhi ata hai
Ma'am we can use for loop also as well😊
Can you please give me code using for loop
How to solve this using fgets()?
I like your dressing style mam
12:18
mam can u plz solve this question
❤️❤️❤️❤️
Mam ap bohat sundar ho
Ma'am I want some help for c ++ program
Today I am late 😭.
hmeltha reuh hle mai a 🤣🤣
Aap plz Hindi me v study karaya kro plz 😓😓😣😣
❤️❤️
Preety cute mam ❤️♥️
💕💞
I love you mam
Heroin 👸
Fourth comment
Ma'@m how to print: I love you??
#include
int main ()
{
printf("I Love You") ;
return 0;
}
/*don't disturb your ma'am for such simple issues*/
ma'am you r looking cute 🥰❤