Hello ma'am, I'm currently in Final year B. Tech CSE. I have been a silent follower since 3 years. But now I'm writing this comment to tell you that I got placed in a company with 8LPA. The DBMS playlist is the reason I could answer so many questions in exams and interviews. I'm forever great full to you ma'am. Thank you for doing what you are doing. ❤ Tonnes of Love ❤
Mam why teachers like you don't exist in universities......ithna clear explanation.... ithna command on language...I always wonder about your teaching mam .. it's serious...I swear mam....
They are also teaches well but they are bound to complete syllabus within given time.... eventually they more works on to complete syllabus rather than understanding.. That's the reason...!!! 🌱✨🌿🌷
How to return multiple values from a C/C++ function? It can be any value like int, float, double, string, array, structure., etc. Read one. Usually, a function can only return a single value, using the return mechanism. If you try to return more than one value from a function, only one value will be returned that appears at the rightmost place of the return statement. However, you can return multiple values from the function using the pointer, array, or structure. Using Pointers You can use pointers to return more than one value from a function by passing pointers as function parameters and use them to set multiple values which will then have visibility in the caller function. Using Array If you want to return multiple values of the same data type from a single function, then using an array is best suited because when an array name is passed as an argument then its base address is passed to the function so whatever changes made to the array is changed in the original array. Using Structure Another way to return multiple values from a function is by using structures. Structure is a user-defined datatype in C that can hold several datatypes of the same or different types. The idea is to create a structure variable containing all required data types as its members and return that from the function. We can then retrieve the values from the structure variable inside our caller function.
My question is about your explanation of the example beginning around 12:00 (video C_98). I am wondering why the string "Jenny" would be in the stack. I would rather believe that only the pointer str is in the stack. When the function returns str, it is the pointer that is not accessible anymore and, consequently, the string. I know the effect is the same, but my question is: "Are strings always stocked in an area other than the stack or can they be stocked in the stack also?". Thanks for your time.
@14:49 it's not the heap area but the read only memory region where "Jenny" is stored. str is pointer in stack memory pointing to that address of that string and that address is returned. Heap memory is for dynamic allocation.
Mam explain me the difference among Static fun ,Const fun and volatile fun and also Static variable,const variable and volatile variable . What will happen with them , when do we go for them in programming
Mam you're teaching is really understandable. Can you please start JAVA class. I searched and find a cls but I can't understand that so can u pls consider this please mam start java cls soon.
char *str="jenny"; gonna be stored in ROM not heap memory the heap memory is allacated only for dynamic memory allocation when using function malloc or calloc thank you
Maam, why didnt you write *str instead of str in main function while you are printing the str? As because we know *str means indirection, by doing we can access the value.. I am little confusion here..!! If u help me,it will be very helpful to me!
My problem is i want a function to take a string input, return that string, to main and use it in other functions to finish my program and every-time i either get a garbage value, segmentation fault or compile error. No matter what i do😢. And doing str = getString(); in main just gives a compile error
If i used const... In function definition declaration chaged to const and also in main fun variable declaration also changed to const.... But in case i used static there is no need to change these areas why????
In the Case of Call by Reference we are passing the variable's address or pointers of main function to User Defined Functions....and we can't Return variable's address or pointers Normally to main function because they are local..... So while passing arguments ,Why not UD functions considering that arguments as local ???
char *strInput() { char *palavra; scanf("%s", palavra); return palavra; } char *caracter; char *word; caracter= strInput(); word= strInput(); For some reason, word is being ignored. Help ?
When I declare string like this char str[ ] and str=display() then error is come that string is not assignable to display() then how char*str and char str [ ] can be same?
Why in this context there needs to be considered static and heap memory...since array is referenced type variable so from global point it should access automatically 😮😮😮very confusing topic requesting to elaborate the discussion more😮😮😮😮plz
Hello ma'am,
I'm currently in Final year B. Tech CSE.
I have been a silent follower since 3 years.
But now I'm writing this comment to tell you that I got placed in a company with 8LPA.
The DBMS playlist is the reason I could answer so many questions in exams and interviews.
I'm forever great full to you ma'am.
Thank you for doing what you are doing. ❤
Tonnes of Love ❤
Congrats sis, junior here :)
@@anujeetkunturkar780 Thank you, All the best! ❤
congrats sis....
Congrats👏👏👏
What programming languages did you learn
I am 🇱🇰 , i like your teaching style mam
I also like her 🥺😘😍😍
Great! I cannot expect that the word "static" can change all my code^^ keep it fresh, thank you
Didi you are best teacher ever seen.Thank you so much.Take love from Bangladesh.
THIS WAS THE MOST *PACKED* LECTURE I EVER WATCHED UNTIL NOW IN C.
Mam why teachers like you don't exist in universities......ithna clear explanation.... ithna command on language...I always wonder about your teaching mam .. it's serious...I swear mam....
They are also teaches well but they are bound to complete syllabus within given time.... eventually they more works on to complete syllabus rather than understanding.. That's the reason...!!! 🌱✨🌿🌷
How to return multiple values from a C/C++ function? It can be any value like int, float, double, string, array, structure., etc. Read one.
Usually, a function can only return a single value, using the return mechanism. If you try to return more than one value from a function, only one value will be returned that appears at the rightmost place of the return statement. However, you can return multiple values from the function using the pointer, array, or structure.
Using Pointers
You can use pointers to return more than one value from a function by passing pointers as function parameters and use them to set multiple values which will then have visibility in the caller function.
Using Array
If you want to return multiple values of the same data type from a single function, then using an array is best suited because when an array name is passed as an argument then its base address is passed to the function so whatever changes made to the array is changed in the original array.
Using Structure
Another way to return multiple values from a function is by using structures. Structure is a user-defined datatype in C that can hold several datatypes of the same or different types. The idea is to create a structure variable containing all required data types as its members and return that from the function. We can then retrieve the values from the structure variable inside our caller function.
My question is about your explanation of the example beginning around 12:00 (video C_98). I am wondering why the string "Jenny" would be in the stack. I would rather believe that only the pointer str is in the stack. When the function returns str, it is the pointer that is not accessible anymore and, consequently, the string. I know the effect is the same, but my question is: "Are strings always stocked in an area other than the stack or can they be stocked in the stack also?". Thanks for your time.
this is my first videos from this playlist i understand 50% only....
char *str = "jenny"; jenny is stored in initialized read-only memory which is the part of data segment not in heap memory (your's comment)
This section cleared up a lot of confusion. Thanks, ma'am
@14:49 it's not the heap area but the read only memory region where "Jenny" is stored. str is pointer in stack memory pointing to that address of that string and that address is returned. Heap memory is for dynamic allocation.
Mam explain me the difference among Static fun ,Const fun and volatile fun and also Static variable,const variable and volatile variable . What will happen with them , when do we go for them in programming
Mam you're teaching is really understandable. Can you please start JAVA class. I searched and find a cls but I can't understand that so can u pls consider this please mam start java cls soon.
Because of your beauty i learned entire c + 😂😂
I also bro 😂😂😂
Good evening mam. 🙏🙏
Good morning☀
Omg this is the first vdo of this playlist where I really didn't get it 😐😶
Yes
Same here
Mam I am using turboo c and c language in mine program it change value jeeny to zeeny timeline 16:35
clear all points thank you mam
Very clear thank You.
18:23
Great explaination mam ❤❤❤
thanks for teching in english
char *str="jenny"; gonna be stored in ROM not heap memory the heap memory is allacated only for dynamic memory allocation when using function malloc or calloc thank you
Mam Your eye is very nice😊
Mam pls start java course
You are great teacher.
Which IDE do you suggest best?
Maam, why didnt you write *str instead of str in main function while you are printing the str? As because we know *str means indirection, by doing we can access the value.. I am little confusion here..!! If u help me,it will be very helpful to me!
Maam could you please start a course on core java
My problem is i want a function to take a string input, return that string, to main and use it in other functions to finish my program and every-time i either get a garbage value, segmentation fault or compile error. No matter what i do😢. And doing str = getString(); in main just gives a compile error
Same problem
2:47
@Jenny's Lectures, Which IPL team you support mam?
Maybe PBKS.
Thank you madam
More more videos on pointers , string
Mam please start python classes
Mam u r looking awesome
I have one doubt as it is returning 1st character address but it is printing full string
Ye bro I am also having the same doubt 🧐
Yes because we using %s not %c bro
Becuz of its stores at contagious memory location
char *str ="ram"; ram string is in code section
Mam can u make on oops concepts too please?
If i used const... In function definition declaration chaged to const and also in main fun variable declaration also changed to const.... But in case i used static there is no need to change these areas why????
In the Case of Call by Reference we are passing the variable's address or pointers of main function to User Defined Functions....and we can't Return variable's address or pointers Normally to main function because they are local..... So while passing arguments ,Why not UD functions considering that arguments as local ???
Thanks 😊mam
Mam when we use return Jenny we can modify it I runned it on my pc it prints zenny
Thank you mam
Can u pls start Python mam
char *strInput() {
char *palavra;
scanf("%s", palavra);
return palavra;
}
char *caracter;
char *word;
caracter= strInput();
word= strInput();
For some reason, word is being ignored. Help ?
First comment from nepal
Not 1st comment...Jhoot bol rha h....m 2nd hu....1st koi or h....
Mam dynamic memory allocation pda dijyee
When I declare string like this char str[ ] and str=display() then error is come that string is not assignable to display() then how char*str and char str [ ] can be same?
because if its internal memory address
Thanks mam
Hello mam make a video series on C#
Your my crush ma'am 💕😘❤️❤️❤️
can any one explain at 14:30
We can modify it to mam
Mam plzz make video on applied technique multimedia plzz reply me 😭😭😭😭😭😭
Don't be fool by the rocks that I got, I'm still Jenny from the stack.
Why in this context there needs to be considered static and heap memory...since array is referenced type variable so from global point it should access automatically 😮😮😮very confusing topic requesting to elaborate the discussion more😮😮😮😮plz
Plz make video 1080p or upper.
Mam please lecture on scilab coding
Mam jaise function ko padya hi pls recursion mam
Can anybody tell me plz ,why it's read only in the function display ()
How we will replace string using function.
I am indian ✌️
Not getting output on c++...
thats why i coming in this video
This particular lecture is very tough 😑😑
I would rate her lectures 3/10
Mam iam10thstd how can i join javascipt please help me mam age 37 life very poor situations
💯💯💯💯💯💯💯💯💯💯💯
That’s ancient c++. Not really relevant now. Teach c++ 17 features for the people
Hi mam
Very poor lecture. Did not get anything
Helo mam
Very Confusing this lecture is
hi
hi mam please reply me
Please tell me please please
Kya aapka शादी हो गया है 😍😍❤️❤️
Mam mujse shadi karogi kya?