Learning to Program in C (Part 08)

preview_player
Показать описание
This is part 8 in our tutorial on learning to program in C. In this lesson we will be exploring structures (structs), the typedef construct and union. Just like arrays allow us to represent many data elements of homogenous type, structs let us group together logically related heterogenous data elements into a single cohesive entity.
Рекомендации по теме
Комментарии
Автор

thanks mr Jonathan
i hope you do more tutorials with more Open source Languages
thanks

metaorior
Автор

In the second example, how would you print your results in main?

bhill
Автор

I have a UNIX programming book by Stephen G. Kochan, I heard somewhere he also qrote one for ANSI C?

bits
Автор

(24:44) Hmm on my MacBook the return type of sizeof is unsigned long,  e.g. %lu instead of  %d. 

main.c:24:33: warning: format specifies type 'int' but the argument has type 'unsigned long'

JimClermonts
Автор

if(!strcmp(req, "Home"))
Sir, why we are using ( ! ) while comparing 2 strings??

thevijayraj