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
Dima
Read the rules please
klimi
Daniele°
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.
Mihail
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
Mihail
So what's wrong?
Aakriti kaur
Is it right?
Mihail
Yes
Dima
No
Aakriti kaur
Thanks
Dima
It would align the structure
Aakriti kaur
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
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
Aakriti kaur
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
or c98 ?
Daniele°
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
Anonymous
Pro
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
Anonymous
i ll let uh know in just 2 mins...
🄼🄾🄷🄰🄼🄼🄴🄳
hi
🄼🄾🄷🄰🄼🄼🄴🄳
WwwW
Dima
What is this?
WwwW
this may help you
Anonymous
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.
Pro
U HAVE MY GRATITUDE AND BIG THANKS!
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...
klimi
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$