C Programming Tutorial - 69: Passing Structures to Functions

preview_player
Показать описание
In this tutorial we'll see how we can pass structure variables as arguments to functions.

Thanks for watching!
Рекомендации по теме
Комментарии
Автор

Hi! I just wanted to say I really appreciate the length of your videos. Having many, shorter videos is really helpful for reference regarding specific topics.
Thanks!

JohnFodero
Автор

How would I define multiple variables of a the same struct right after the definition?

syedtalhaiftikhar
Автор

technically, u could just use struct album, and puts in ur function since album is a global variable. anyway nice vids man!

darkblader
Автор

Excuse me can I get the IDE you are using to code your C I'm using QT for c++ but I want to use an IDE only for C thanks

danielson.correa
Автор

Hey man, I appreciate your video, but what do I do if I want to pass structures with loops to another function! It would be great if you responded quickly; my deadline's tomorrow. Hehe Thanks in advance!

danielstephenaguilos
Автор

Before struct Album you should write it like this:

typedef struct Album this is so you won't have to declare Album by putting struct Album everytime

mohsinbari
Автор

This is lecture *69* from *The bad tutorials*

urbanlobster
Автор

maybe this will help someone

struct a{
};

void function(int*, int*, struct a *structexample);

main()
{
struct a structexample[3];
int a = 0;
int b = 2;
function(a, b, structexample);
}

void function(int* a, int* b, struct a *structexample)
{

aaron___