Passing structures as arguments to functions in c

  Рет қаралды 4,319

Sudhakar Atchala

Sudhakar Atchala

Күн бұрын

This video contains how to pass structures as function arguments in c language.
We can pass structures as function arguments in 3 ways.
1.Passing Individual members of the structure as function arguments.
2.Passing Entire structure as function argument.
3.Passing Address of structure variable as function argument.
#Passingstructuresasargumentstofunctionsinc #passingstructuretofunctioninc #passingstructurepointertofunctions

Пікірлер: 16
@siddireddyvignesh
@siddireddyvignesh 2 жыл бұрын
Very useful sir Thank you
@SudhakarAtchala
@SudhakarAtchala 2 жыл бұрын
Always welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@RAMANUJAN-bi3zx
@RAMANUJAN-bi3zx 4 жыл бұрын
I understand very very will sir..thank you sir
@SudhakarAtchala
@SudhakarAtchala 4 жыл бұрын
You are most welcome
@Raam1827
@Raam1827 Жыл бұрын
Why you declaring a & b in main function?
@SudhakarAtchala
@SudhakarAtchala Жыл бұрын
To use them. Instead of a,b you can use other variables also. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@tejaskr140
@tejaskr140 3 жыл бұрын
Nice teaching
@SudhakarAtchala
@SudhakarAtchala 3 жыл бұрын
Thanks Tejas. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@vishnu_teja_gundam3118
@vishnu_teja_gundam3118 4 жыл бұрын
Nice explanation sir.......thank you so much
@SudhakarAtchala
@SudhakarAtchala 4 жыл бұрын
Always welcome
@SudhakarAtchala
@SudhakarAtchala 4 жыл бұрын
Plz subscribe to the channel and if possible share with your friends. Thanks
@janakiram5262
@janakiram5262 3 жыл бұрын
Sir that program is not getting correct output...
@SudhakarAtchala
@SudhakarAtchala 3 жыл бұрын
if u share the code i will try to rectify the problem janaki ram. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@prasadalla5076
@prasadalla5076 3 жыл бұрын
You will get the correct out put if the structure is defined outside the main.
@rahulranjan-cj2ii
@rahulranjan-cj2ii 4 жыл бұрын
Sir, I have doubt on the 1st method is:- 1) Sir in the 1st method if we declare structure as globle then we can use the structure variable in both main function or other function also. 2) But I saw some websites that they declare the structure as globle and use the structure variable inside the main function only not use the structure variable on other function. 3) Sir, if we use the structure variable both in main function and other function then our program will be also correct.
@SudhakarAtchala
@SudhakarAtchala 4 жыл бұрын
Ya wt u said is correct. I think no need of any justification from my side.
C Program to add two complex numbers
9:09
Sudhakar Atchala
Рет қаралды 4,5 М.
Self Referential Structures
22:43
Sudhakar Atchala
Рет қаралды 11 М.
小丑家的感情危机!#小丑#天使#家庭
00:15
家庭搞笑日记
Рет қаралды 29 МЛН
The selfish The Joker was taught a lesson by Officer Rabbit. #funny #supersiblings
00:12
Funny superhero siblings
Рет қаралды 11 МЛН
Officer Rabbit is so bad. He made Luffy deaf. #funny #supersiblings #comedy
00:18
Funny superhero siblings
Рет қаралды 18 МЛН
C_87 Functions in C- part 4 |Call by Value & Call by Reference in C
25:49
Jenny's Lectures CS IT
Рет қаралды 336 М.
C Program to generate Fibonacci Sequence using recursion
13:35
Sudhakar Atchala
Рет қаралды 42 М.
61 - DYNAMIC MEMORY ALLOCATION - C PROGRAMMING
19:56
Sundeep Saradhi Kanthety
Рет қаралды 61 М.
Dynamic memory allocation in C-malloc(),calloc(),realloc(),free()
33:20
Sudhakar Atchala
Рет қаралды 15 М.
68 - STRUCTURES & FUNCTIONS - C PROGRAMMING
17:17
Sundeep Saradhi Kanthety
Рет қаралды 90 М.
stacks using arrays
26:55
Sudhakar Atchala
Рет қаралды 10 М.
60 - COMMAND LINE ARGUMENTS - C PROGRAMMING
19:41
Sundeep Saradhi Kanthety
Рет қаралды 56 М.
67 - POINTERS TO STRUCTURES - C POGRAMMING
13:17
Sundeep Saradhi Kanthety
Рет қаралды 86 М.
C_113 Pointer to Structure in C | Structure Pointer | C Language Tutorials
15:04
Jenny's Lectures CS IT
Рет қаралды 216 М.
小丑家的感情危机!#小丑#天使#家庭
00:15
家庭搞笑日记
Рет қаралды 29 МЛН