Ariana
Eh i really havent touched web in like 3 years Nodejs/express is pretty simple and easy to have a web interface websockets is pretty neat too php is painful i’ve seen people use python too haven’t done it myself tho
Foxner
I used Python Flask and NodeJS, and they're both cool.
Aakriti kaur
void main() { struct player { char name[30]; unsigned char player_number; float batting_average }; printf("size = %d", sizeof (struct player)); }
Aakriti kaur
What will print? And why?
Francisco
What will print? And why?
Just f*****g run it
Dima
Read the rules please
Aakriti kaur
Dima
It will also put padding in struct
Aakriti kaur
Just f*****g run it
I run it brother and it show 35 The problem is by what logic it 35.
Francisco
I run it brother and it show 35 The problem is by what logic it 35.
Why are you asking that? Is an asignment for college or something? Cause then you should do it yourself
Aakriti kaur
No it's not asignment
Mihail
Because that's the correct output
klimi
Try size of of things separately
klimi
Or you can google this values
Aakriti kaur
My logic is Size 30 is for char array And unsigned char 1 And float will be 4 so 35 ans maybe
Mihail
So what's wrong?
Aakriti kaur
Is it right?
Mihail
Yes
Dima
No
Aakriti kaur
Thanks
Dima
It would align the structure
Dima
Actually it would be 36 because the compiler will put padding in it
klimi
Align into bytes
Dima
depends on your architecture and compiler
Aakriti kaur
Aakriti kaur
Ya it show 36
Aakriti kaur
Align into bytes
How this works
Dima
read the basics of alignment/padding
klimi
You need something thats x % 8 ==0
Dima
it will take the largest type to align at (i.e. 8 on 64 bits) and align all members to it
Daniele°
Ya it show 36
http://www.catb.org/esr/structure-packing/
Daniele°
And int main not void main
scammer.xyz
Unless you are linking multiple source code
scammer.xyz
.c.h.o into make
WwwW
And int main not void main
This rule seems to appear in c plus plus ?
WwwW
or c98 ?
WwwW
get it
scammer.xyz
Pure C
scammer.xyz
I’m also learning C
Mykyta
Anyone has a chat about php?
WwwW
👍
Mykyta
I have a project which written by php, and I also have some issues about php code
Pro
This rule seems to appear in c plus plus ?
will someone please take some efforts to EXPLAIN THE DIFFERENCE IN THEM?? just ...bcoz i m new to this lang
Pro
i know they are return types and all
Pro
but whats the real difference??
Anonymous
void main is basically used when uh dont have to return any value from ur code......
Pro
when is it critical to use them specifically?
Anonymous
i ll let uh know in just 2 mins...
🄼🄾🄷🄰🄼🄼🄴🄳
hi
🄼🄾🄷🄰🄼🄼🄴🄳
Dima
What is this?
WwwW
this may help you
WwwW
(C89/99/11 and C++98/03/11/14) to find out what "standard behavior" is and what happens after return in the main function.
WwwW
You can translate it into English.
Anonymous
when is it critical to use them specifically?
https://www.geeksforgeeks.org/difference-int-main-int-mainvoid/
Pro
U HAVE MY GRATITUDE AND BIG THANKS!
Francisco
You can translate it into English.
Is it that difficult to find one written in English?
WwwW
In fact, it is better to search on this website. https://stackoverflow.com/questions/9356510/int-main-vs-void-main-in-c?r=SearchResults
Anonymous
👌🏻👌🏻👌🏻
WwwW
The previous link was searched in my own language , Chinese . so...
Anonymous
The previous link was searched in my own language , Chinese . so...
yes....we can translate it into english and it is simply easy to understand....
WwwW
haha , I'm new, too
WwwW
learn from each other
klimi
May I pm you?
WwwW
sure
Anonymous
can anyone plz help me to develop a dynamic website in a short time..??
klimi
Hi jay$