C_96 Passing Array as an Argument to a Function in C | C Language Tutorials
Vložit
- čas přidán 23. 07. 2024
- C complete playlist: • Programming in C
Use my code jkl10 to get 10% discount
Career as a Developer: unacademy.com/goal/career-as-...
Exploring Crypto: bit.ly/Unacademy-Ajay
Connect & Contact Me:
Vlogging Channel Link: bit.ly/354n7C7
Facebook: / jennys-lectures-csit-n...
Quora: www.quora.com/profile/Jayanti...
Instagram: / jayantikhatrilamba
Twitter: / khatrijenny
See Complete Playlists:
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: // • Operating Systems
DBMS: • DBMS (Database Managem...
#functionsinC
#passingArrayasArgument
#jennyslectures
Thanks miss for explaining this topic in English because students like me who belong to non hindi speaking states are getting equal opportunity to learn this topic from you... Thanks a lot Maam
Also people who are not like you, who only understand Hindi are not getting equal opportunities to learn. Would you like to say something on that ??
@@Raju_Sharma852 If we take CSE it doesn't matter which language we know or not we should try our level best to understand english . And as we are not english speaker by birth so we should listen English lecture to increase our English vocabulary power.....
@@Raju_Sharma852 There are plenty of other channels that teach in Hindi, let them watch those.
@Razeen Asief Then why don't our South Indian brothers and sisters upload video on such topics ( JEE, UPSC, Programming etc) when cities like Bangalore and Hyderabad is the hub of technology/tech industries ??
Damn these people are arguing over a language like seriously 🤦
Mam I have done my exam but I didn't prepare for it so I watched your lecture but I forgot to do this before my exam at 12 pm to 2pm and I watched our lecture at 4pm for preparation for exam and the fun fact is I got 99.98% without preparation 😅🙃🙂😄 thanks for helping me to optimize LEGACY GEN10 for exam logic and preparation.
Be single and an stay 💯😌 motivated because after relationship you can't be motivated you only distracted 💯🤧😌🤷
Janhit main Jari,
Ladki padhaegi padhai pe distraction ki bahari
your videos have been very helpful to me as a student and i have gained confidence to as well anytime i write a C program. Thank you for your dedication in making these videos
when i am learning java frames, than why i am here 😁😁😁
Just to support you mam , i still remember dsa and myself before 2 days before exam
thanks for videos 💖💖💖
Thanku so much mam
Because of you now I am getting this concept
You are a wonderful teacher
what a successful and lovely trainer you are ! thank you for video:)
czcams.com/video/hhIHnxkOz2s/video.html
thankyou so much just because of you i am able to learn and understand this topic so easily.
☺☺thankyou mam for your this initiative.
Hi Mam, Thank You for all your lectures it is very help full for me 🤗
Very informative and wonderful lecture, thank you so much, Ma'am,
Thanks Jeny,, You are a real inspiration
you are a stunner mam, your videos are literally the best.
Superoo superobhya superosyaha....👏👌
And that word "fine" in between the explanation is so cute. When I'm explaing the vdo's of u to my friends, unfortunately, I'm also pronouncing "fine" and "Ok" as like u..!!
Nice to see you Mam again. Thanks for come back 🙏
Thank you mam you doing great work.
Declare an char array in main function and pass it to a function and initialize the array inside an function. Print the string in main function
Hello mam, here for array in definition part, when we r getting address of the 0th index of the variable, we didn't add * in definition function, but in case of string we added * in definition function, why? String is also an array, so why it has different rule? If u answer then it will be very helpful for me, I'm confused with it.
Hi. If we are passing address by call by reference method, then why we are not entering asterisk symbol in function definition. Simply int avg (int *marks[], int a)
Super explanation mam you are best 👍 stunning explanation 💕
NICE SUPER EXCELLENT MOTIVATED
Thanks for your efforts
Hi, whenever the base address of an array is transferred as an argument to the function then during the function declaration is it not required to dereference the pointer? Otherwise how we get the value at that address? Like as u did in marks [ ]. So, is it not required to dereference the pointer in order to access the value?
thank u mam 😇😇😇 ur truly an amazing teacher
Thanks you Maam , You are too good 😊
You teach depth concept and teaching way is very well?
Awesome teach mam 👏
cant we write int avg(int marks[10]) in place of int avg(int marks[ ], int size ) if i know that only 10 elements i need to pass?
thank you soo much mam
ma'am please can you make one video for read and display 2D array using function
hello madam in my compiler the size of array in avg function, it giving result 8bytes. how
thanks a lot........
thank you so much mam😊😊
thanks Miss
Suppose students marks are in tabulated form in a file the how to access as a array and pass it an argument? Or in excel.
Thank you madam
If we perform above code in a 64 bit system will size come as output???
Please make video on topic where both argument and returning value is array of string data type.l am getting a lot of errors while doing so.
Ma'am please take lecture on recursion in c.
Waiting for topic.
Thanks mam good seasion
update: In a 32-bit system, a pointer is typically 4 bytes, and in a 64-bit system, a pointer is usually 8 bytes.
Waiting...For your video...
thanks mam
Yes we goat this!
Mam can you explain this topic as a user defined function so that I can understand well because all topics covered by seeing your CZcams lecture of c
Thanks mam your vidio is very helpful 👍👍
czcams.com/video/hhIHnxkOz2s/video.html
Create telegram channel plz and post class pdf in telegram channel ..
Hard-working u mam💯💯💯💯
Thank you very much mam 👏👏
In reality c is being used very rarely in organization , Java is being used widely
Those who don't like coding can choose automation testing (20% coding only )
czcams.com/video/hhIHnxkOz2s/video.html
You are VERY wrong when you say C is used rarely in organization. MANY of the top BIG organizations use C. Do research and you will see C is one of the most used languages especially for backend programming since it is so fast.
Mam I can't understand the call by reference in passing array to function
python or java which one I choose for placements
Y u r so beautiful.my exams r over but still i m watching u means this video lecture
Mam your voice is sweet as you are ☺️
Why use void main here if we are returning some value
Maam will you please do it
Write a c program using function in which there will be two arrays of different lengths and 1 element of one array will be added with every element of the other array
Madam I need your suggestion regarding my career
I just have completed my 12th standard and I learn c language from a well known institute of my locality
Which course should I start next other python or java or any other please suggest me some good course
czcams.com/video/hhIHnxkOz2s/video.html
When mam looks in the camera it actually feels like she is watching us and i got scared 🤣🤣🤣
mam you are so beautiful stay blesses and always be happy ..🙃
Good afternoon mam. 🙏
Good afternoon 🌝
Mam please upload video related to file handling in c
super mam g u r best mam
thank u so much mam g
Mam please replay me
Which one is better B Tech cse from normal private college vs BCA from government autonomous college ??????
Maam plzz upload topic structure and union in c and file handling in c. Asap 🙏🙏🙏🙏🙏🙏🙏🙏🙏
Mam plz make videos on full Java 🙏
MAM, I AM FROM #BANGLADESH.Very first time i didn't understand your lecture
czcams.com/video/hhIHnxkOz2s/video.html
my output:
inside avg function size of array is(in bytes):8
average=30
inside main sizeof array is (in bytes):20
how is this possible size of a single element is 8, but why the size of the array is 20. Please anyone explain this contradiction.
Or aapne kaise sikha ye sab ye bhi bta do please mera bhi mn bhut kr raha h sikhne ka please reply Krna
I GOT IT OMG
Right
I got 8 bytes size of array in avg function what is the reason
#include
int avg(int[],int);
void main()
{
int average,size;
int marks[5]= {10,15,20,30,45};
size=sizeof(marks)/sizeof(marks[0]);
average=avg(marks,size);
printf("Average is %d
",average);
printf("Size of array (inside main) is %d
",sizeof(marks));
printf("Size is %d
",size);
}
int avg(int marks1[],int size)
{
int i, sum=0, average=0;
for(i=0; i
In a 32-bit system, a pointer is typically 4 bytes, and in a 64-bit system, a pointer is usually 8 bytes.
dear madam,
how to pass palindrome to new array...?
can u solve this program mam? I am finding difficult in this program.
thank u.
Hello madam
Could you pls explain about file handling techniques in C lang 🙂🙂
czcams.com/video/hhIHnxkOz2s/video.html
Madam ,Please provide videos for c++ also
Mam how many videos could be all
ma'am in one video you said that you will provide notes please provide notes
Started python course
3 months later, how is it going?
Mam please make some video in c ++
Nice 👍
czcams.com/video/hhIHnxkOz2s/video.html
Ma'am would u take class about Array, Structure, and Union. You have already taken the class about Pointer right? Other 3 derived data types are still left. We need those topics also.. Plz ma'am .. Waiting for that.. Thank you 😊
czcams.com/video/hhIHnxkOz2s/video.html
Ma'am aapko c,,, c++,,,,,, pythan etc. Language aati h or english bhi achii h aap koi application bnaye ho kya
😭😭y don't I get a teacher like you mam
czcams.com/video/hhIHnxkOz2s/video.html
looking cute as always.......😊❤️
This is a very tough concept 😢
Ma'am coding ke liye best app btaiye
Hi,i have question what is the difference between (int main)and(void main)?
Its return type of function
Means. Void it returning nothing
Int. It returning integer value.
Similarly. for other data type return type
czcams.com/video/hhIHnxkOz2s/video.html
Mam
mam we need notes for c
Mam pls teach java programming as like this c programming
czcams.com/video/hhIHnxkOz2s/video.html
Hi mam
Mam array explain in tamil meaning English pls comment mam helpful for me
Can you teach Python Madam.
If you write the following program:-
---------------------------------------------------------------
void getArraySize(int arr[]){
int len = (sizeof(arr)/sizeof(arr[0])
printf("Array Length:%d
",len);
}
int main(){
int array[] = {1,2,3,4,5};
getArraySize(array);
return 0;
}
----------------------------------------------------------------
You'll get this warning.
- sizeof on array function parameter will return
size of 'int *' instead of 'int []' [-Wsizeof-array-argument] -
---------------------------------------------------------------
This is because:-
The array decays to a pointer when passed.
So sizeof only works to find the length of the array if you apply it to the **original array**.
So you need to **pass length of array as separate argument to function**.
inside the marks function my marks size is showing 8 bytes
May be due to compiler
Your my crush ma'am 😘
Mam Can you teach BCA students also
czcams.com/video/hhIHnxkOz2s/video.html
@@plcsd thanks sir 🙏
Skip 1:07 to 2:42
Hi
favourite if you have finals tomorrow 🌚
Ma'am i want to work with you as a thumbnail editor plz reply me if you are interested in it i will send some samples.
Thank you.
czcams.com/video/hhIHnxkOz2s/video.html
Mam ek bar aur bata dejiye
96th video
your smile kills thousands of handsome enemy 😎
Run this codemam