63 - POINTERS PASSING AS ARGUMENTS TO FUNCTIONS - C PROGRAMMING

  Рет қаралды 68,721

Sundeep Saradhi Kanthety

Sundeep Saradhi Kanthety

Күн бұрын

Пікірлер: 97
@yashchauhan2894
@yashchauhan2894 4 жыл бұрын
You're amazing sir. I learned a lot from your videos. Thanks for all the efforts. Love from Gujarat :)
@sanjanagoud9058
@sanjanagoud9058 5 жыл бұрын
Thank you sir for ur videos👌👏
@iam_bunny3239
@iam_bunny3239 3 жыл бұрын
Giving clear explanation 👏👏👏
@ethiopia-prevails498
@ethiopia-prevails498 Жыл бұрын
Tnx that u gave me better explaplanations on ur platform. My question is what does it mean if (int *)&a written.
@vithanalabhargav129
@vithanalabhargav129 7 жыл бұрын
Sir, In this program the printf statement ("%d",sum); in the function definition will it prints the address or the value stored in that address?
@sundeepsaradhi
@sundeepsaradhi 7 жыл бұрын
hi bhargav nice observation here i have to replace the printf statement ("sum=%d",*sum); thanks for your correction.
@saisriharshayellaboyina2434
@saisriharshayellaboyina2434 3 жыл бұрын
Nice observation bro
@priyanshumeher3369
@priyanshumeher3369 3 жыл бұрын
Nyccccc
@aleXelaMec
@aleXelaMec Жыл бұрын
good explanation! thanks
@travellerdelhiites8115
@travellerdelhiites8115 3 жыл бұрын
You are great sir!!!Thanku for this video.
@francisbritto3556
@francisbritto3556 6 жыл бұрын
Sir i understood easily by your video.If you are telling funtion pointer i hope it will be too useful for everyone
@_AkashRuidas
@_AkashRuidas 3 жыл бұрын
you are the best sir
@GSP-vd9yr
@GSP-vd9yr 6 жыл бұрын
Clear and brief explanation sir
@priyanshumeher3369
@priyanshumeher3369 3 жыл бұрын
Thank uhhhh❤❤
@DEEPAKM-gk2pj
@DEEPAKM-gk2pj 2 жыл бұрын
sir inside of printf statement (* sum) is give correct ans.but sum is print the address of sum
@kushalyeruvaka5312
@kushalyeruvaka5312 4 жыл бұрын
EXPLAINED WELL SIR......
@nandugaming4592
@nandugaming4592 2 жыл бұрын
Tq sir well explanation
@Seerat.Bashir
@Seerat.Bashir 6 жыл бұрын
Sir can u plz make a video on passing arrays( both by element and whole array) as function arguement..Sir plz reply ..
@anithar2268
@anithar2268 7 жыл бұрын
U r brilliant sir. Super!
@sundeepsaradhi
@sundeepsaradhi 7 жыл бұрын
Hi Jeeva Anitha thanks for your support towards our channel.
@mrds7981
@mrds7981 6 жыл бұрын
sir your explanation is excellent and very understanding. can you please explain the example program for accessing string members using pointers
@SatheeshKumar-bk4vv
@SatheeshKumar-bk4vv 3 жыл бұрын
If u declare variables like a, b, sum=0 it means for all the three variables are initialized as zero.
@Contemelia
@Contemelia 2 жыл бұрын
No. It means that sum is initialized as 0 and a and b are declared. If u want all of em to be initializes as 0, you type it as int a = 0, b = 0, sum = 0;
@Rahulkumar-dg5pu
@Rahulkumar-dg5pu 4 жыл бұрын
Thanks sir concept cleared !!
@pritamsaha2848
@pritamsaha2848 3 жыл бұрын
sir...here add() is the called function and main() is its calling function...
@arunaagt8229
@arunaagt8229 4 жыл бұрын
is this program is call by reference or call by value?
@mayank_singh_43
@mayank_singh_43 3 жыл бұрын
One thing is missing Actually in last line ,inside printf of add function ,we should write *sum in place of sum.
@mayank_singh_43
@mayank_singh_43 3 жыл бұрын
But nice content sir ,i learnt this thing completely from your video
@vallimanickam7439
@vallimanickam7439 3 жыл бұрын
sir valli from cuddalore ,tamil district . i like ur videos very much excellent explanation sir. one doubt sir i need full program outside the main we declare function sir this is correct one sir int add( int int int) or int add(^int *int *int) if it is wrong how can i declare
@fahadp7454
@fahadp7454 2 жыл бұрын
We can't print sum inside function add ?
@preethig8334
@preethig8334 4 жыл бұрын
Thank u sir
@singanapallinagasai6447
@singanapallinagasai6447 Жыл бұрын
Sir if we print *sum means what will come in printf statement
@subhasish5047
@subhasish5047 3 жыл бұрын
*sum last me hoga btw love u Sir
@sumathijanani2467
@sumathijanani2467 6 жыл бұрын
In main() we use local variables and how that variables are used in user defined function
@shabarish2727
@shabarish2727 5 жыл бұрын
in user defined fucntion we write int *a This is completely different that that in the main function
@whatwelearntoday
@whatwelearntoday 5 жыл бұрын
Gr8 🤩🤩
@MKSundaram
@MKSundaram 4 жыл бұрын
Why and where we can use pointers?
@aswiniganesan8137
@aswiniganesan8137 6 жыл бұрын
"Write a program to print all permutations of a given string",can you please explain this program in one of your videos sir.
@moropaneedwin4915
@moropaneedwin4915 6 жыл бұрын
This video is super .It is number one... Thank you for playing an important role in our lives Sir. So ,Is it possible that I can declare the variable sum only in the function definition and not in the main function ?
@moropaneedwin4915
@moropaneedwin4915 6 жыл бұрын
for instance ,I just write it like this int sum=0 ; sum=*a+*b ; cout
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi Edwin you can write like this.This will also give the same result.
@thakararkeval4759
@thakararkeval4759 6 жыл бұрын
How can we pass 2d array in function and try to explain in how memory work in that process..
@sushantregmi2126
@sushantregmi2126 4 жыл бұрын
should have used different variables rather than a and b in the add function, it would have been more clear to understand and its printf ("sum = %d ", *sum );
@seethals7917
@seethals7917 4 жыл бұрын
Thank you sir...
@slientpower_3661
@slientpower_3661 6 жыл бұрын
Please provide total pointer concepts
@iam_bunny3239
@iam_bunny3239 3 жыл бұрын
function declaration not written sir
@rajaessaar789
@rajaessaar789 6 жыл бұрын
Sir why you couldn't declare the pointer variable
@rajeshmishra4025
@rajeshmishra4025 5 жыл бұрын
Can we use anything else at the place of add in the same programm??? Why this add is used???
@shivanichavan6275
@shivanichavan6275 3 жыл бұрын
Yes u can
@balipavankalyan5008
@balipavankalyan5008 6 жыл бұрын
At last sentence printf ("sum = %d ", *sum );
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi bali printf ("sum = %d ", *sum ); is the correct one and thanks for observation and correction.
@Mani_2808
@Mani_2808 2 жыл бұрын
the program does not execting sir
@satellite964
@satellite964 4 жыл бұрын
what if a was initialized as int *a instead of just int a?
@khojpedia5759
@khojpedia5759 6 жыл бұрын
Awesome sir
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
@Adnangamingzone437
@Adnangamingzone437 6 жыл бұрын
Thanks sir
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi thanks for watching my sessions and supporting our channel.keep following our channel.
@Hmkm522
@Hmkm522 7 жыл бұрын
thank you sr
@sundeepsaradhi
@sundeepsaradhi 7 жыл бұрын
always welcome manoj
@balipavankalyan5008
@balipavankalyan5008 6 жыл бұрын
It is right or urs right
@sathiyajvrajan5805
@sathiyajvrajan5805 5 жыл бұрын
Hi sir, can u examplain this functions to pointer using signals .....and how it works in linux
@ShivamVerma-gq2sm
@ShivamVerma-gq2sm 5 жыл бұрын
sir why are not writing any return type in both the function definition?
@akshayambrose451
@akshayambrose451 5 жыл бұрын
While writing the code for main(), you can skip return type(void or int). The program will work fine.
@523priyanka9
@523priyanka9 5 жыл бұрын
Sir please make a video on array of pointers
@gonuguntlashashankasai
@gonuguntlashashankasai 3 жыл бұрын
i am study b.tech 1 sy year civil
@balipavankalyan5008
@balipavankalyan5008 6 жыл бұрын
Sir , very nice
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi bali thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
@balipavankalyan5008
@balipavankalyan5008 6 жыл бұрын
Sundeep Saradhi Kanthety Sure sir
@balipavankalyan5008
@balipavankalyan5008 6 жыл бұрын
Can you help me , please sir
@aruranganeshan2951
@aruranganeshan2951 5 жыл бұрын
It's seems to be confusion because same variables are using main,add function, Please refer this code , if i wrong please correct me #include void add(); int main() { int a,b,sum=0; printf("Enter a & b"); scanf("%d %d",&a,&b); add(&a,&b,&sum); } void add(int *x,int *y,int *z) { *z=*x+*y; printf("Total=%d ",*z); }
@rajeshchowdary3260
@rajeshchowdary3260 5 жыл бұрын
Please explain double pointers
@youaremyfavoritemistake813
@youaremyfavoritemistake813 6 жыл бұрын
sir..I am passing integer pointer but while receiving I want receive in char pointer..pls explain
@epurijala4025
@epurijala4025 6 жыл бұрын
nice
@jayachandrareddy3624
@jayachandrareddy3624 7 жыл бұрын
Sir pls tell me about dynamic memory allocation sir
@sundeepsaradhi
@sundeepsaradhi 7 жыл бұрын
hi jayachandra thanks for your interest towards our channel and soon i will try to upload the video.
@jayachandrareddy3624
@jayachandrareddy3624 7 жыл бұрын
Thank you sir
@chandanboro8714
@chandanboro8714 6 жыл бұрын
plzzz sir...make a video about dynamic memory allocation
@shifazahera7099
@shifazahera7099 6 жыл бұрын
Sir while writing printf statement in the end cant we write *sum??
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi shifa you can write * sum in the printf function so that it will print the value of variable sum. Hope your doubt has been clarified.
@shifazahera7099
@shifazahera7099 6 жыл бұрын
Thank you
@zenmohan8076
@zenmohan8076 5 жыл бұрын
sir can you upload the video reagrding array and pointers..
@raniswarupa6117
@raniswarupa6117 3 жыл бұрын
Features pointer
@sonamsharma9090
@sonamsharma9090 7 жыл бұрын
sir please passing argument in function ka square vala program appload kijiye na
@sundeepsaradhi
@sundeepsaradhi 7 жыл бұрын
hi sonam plz communicate in english so that i can easily understand your problem for clarifying your doubt.
@chantisuragali4586
@chantisuragali4586 2 жыл бұрын
sir u for got to wirte *sum.
@akshaykumark5339
@akshaykumark5339 7 жыл бұрын
spr sir
@sundeepsaradhi
@sundeepsaradhi 7 жыл бұрын
hi akshay thanks for your interest towards our channel.
@shivathumma591
@shivathumma591 6 жыл бұрын
sir upload video about pointer to pointer
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi shiva soon i will upload it. thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
@b-techwala874
@b-techwala874 4 жыл бұрын
#CODE #include int add(int*,int*,int*);// Function declartion int main() { int a,b; int sum=0; printf("Enter the values of a and b: "); scanf("%d%d",&a,&b); add(&a,&b,&sum); // Calling the function } // Function definition /* * represents the value of which the pointer that pointing the variable or address and & represents the address of the variable*/ int add(int *a,int *b,int *sum) { sum=*a+*b; printf("sum=%d",sum); }
@harshabannaravuri9229
@harshabannaravuri9229 2 жыл бұрын
Wrong bro
@harshabannaravuri9229
@harshabannaravuri9229 2 жыл бұрын
In function sum is pointer variable
@akshaykumark5339
@akshaykumark5339 6 жыл бұрын
this video is not that as satisfying sir function doesn't print anything I think
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi akshay here we have written function which belongs to FUNCTIONS WITH ARGUMENTS WITHOUT RETURN VALUES. So we have written output statement in user defined function itself. If you want to write the output statement in main function then you can write return output to main function. Hope you satisfied with my answer and your doubt has been clarified.
@pranavkulkarni18
@pranavkulkarni18 6 жыл бұрын
Your teaching method is good but please speak in hindi
@bondavijaykishore4712
@bondavijaykishore4712 5 жыл бұрын
Hii sir, functions full ga doubt undhi explain cheyyandi sir motham
@sweetychallagolla7575
@sweetychallagolla7575 4 жыл бұрын
sir please make a vedio on arrays of pointers.
64 - STRUCTURES - C PROGRAMMING
27:00
Sundeep Saradhi Kanthety
Рет қаралды 205 М.
56 - CALL BY VALUE & CALL BY REFERENCE (PARAMETER PASSING TECHNIQUES) - C PROGRAMMING
25:51
Маусымашар-2023 / Гала-концерт / АТУ қоштасу
1:27:35
Jaidarman OFFICIAL / JCI
Рет қаралды 390 М.
62 - INTRODUCTION TO POINTERS & POINTER ARITHMETIC - C PROGRAMMING
27:28
Sundeep Saradhi Kanthety
Рет қаралды 180 М.
54 - FUNCTIONS - C PROGRAMMING
37:03
Sundeep Saradhi Kanthety
Рет қаралды 364 М.
68 - STRUCTURES & FUNCTIONS - C PROGRAMMING
17:17
Sundeep Saradhi Kanthety
Рет қаралды 92 М.
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 177 М.
Get Started with GitHub Copilot in VS Code (2025)
21:27
Visual Studio Code
Рет қаралды 427