0
Questions 🤔
my University shoes C as the language for introducing us to developing . we just started and I'm already in love . but there is somethings that the teacher is not explaining to wet . my curiosity is killing me so I need some answers : scanf("%d",&a); what does the "&" means ? how can I work with a string ? what does ( return 0; ) means? what are the #include < ------> ? THANK YOU !!!
5 odpowiedzi
+ 4
& presents the address location where the value of a will be stored
+ 9
c++ is taught here. it is derived from c but is different in many ways.
why not do the c++ course here as well. all these answers are waiting for you there :)
+ 1
but how can we know when there is multiple variables ( how can & present every address )
0
let me correct myself, & means the address, but when you put &a, then it is the address of a, and if you have another variable b, then the &b presents the address of b, and so on
0
ohh so scanf("%d",&a) means that a int is gonna be stored in the address of a .