Roxifλsz 🇱🇹
Is this group like a skid magnet or smth
Roxifλsz 🇱🇹
Fucking hell
Boet
Wait hold up, quite a few of the posts are from here
That's the only reason I'm in here :))
BinaryByter
That's why im fighting for strict 'google before you ask' policies
BinaryByter
Based maxi
Based maxi?
Roxifλsz 🇱🇹
Based maxi?
Basically means I agree with you
BinaryByter
Alright
klimi
Purgeeee
Boet
Is this group like a skid magnet or smth
All the big tech groups are
BinaryByter
Except we are very loose
BinaryByter
My other group is a skid magnet aswelr but i don't care
Boet
A
DevCon Agenda, Wednesday, 14th November 2018
BinaryByter
Link? More material is always better :D
@prograchallenges there's a link to a group somewhere
BinaryByter
Anonymous
how do i use the gtk library with C?
Anonymous
i have the packages but how to import the library?
GM
Can you tell the software for turbo c++ alternative
Mr. COwO2 Preis
Palinuro
xyproblem.info
Palinuro
please, what is your true issue?
Palinuro
codeblocks is an IDE that makes use of other compilers to compile your code libraries are provided by the compiler suites, not by the ide if a library is missing, then the issue is not with codebkocks but with the underlying compiler what compiler do you use in codeblocks?
Ибраги́м
https://www.youtube.com/watch?v=GldFtXZkgYo
Himanshu
/notes
Erdem Efe Erol
/notes
Anonymous
how am i supposed to use the gtk library with C on GNU/Linux?
Anonymous
how do i get the library?
Roxifλsz 🇱🇹
Ибраги́м
https://www.reddit.com/r/cpp/comments/9mlr1b/how_newlines_affect_linux_kernel_performance/
Anonymous
Just read their starting guide
i did, but i already have the packages by default on some GNU/Linux distros afaik
Roxifλsz 🇱🇹
i did, but i already have the packages by default on some GNU/Linux distros afaik
Ok then, if you already have the development libraries installed you just have to include the needed headers and link the library in your compile script(or makefile, etc.)
Ariana
Install kali
your high XD
Kelvin
I hacke Google
Kelvin
Open terminal
Kelvin
Trpe ping google.com to hack Google
Kelvin
Shit this ain't ot group
⠠⠍⠥⠓⠁⠍⠍⠁⠙⠽⠥⠎⠥⠋
😄😄
Anonymous
Hi
Anonymous
Everyone
Anonymous
Yes
BinaryByter
your high XD
Whose high?
Andrea
Hi all
klimi
Hi
Anonymous
Hey can anyone explain me output of the following code: #include <stdio.h> Int main() {char s[3][128] ={"one","two","three"}; char *p = (char *)s[2]; printf("%c%s", *p + *(p-1) - *p, ++p); return 0; }
Anonymous
@ollirz
⠠⠍⠥⠓⠁⠍⠍⠁⠙⠽⠥⠎⠥⠋
Language: gcc Source: #include <stdio.h> int main() {char s[3][128] ={"one","two","three"}; char *p = (char *)s[2]; printf("%c%s", *p + *(p-1) - *p, ++p); return 0; } Warnings: source_file.c: In function ‘main’: source_file.c:7:34: warning: operation on ‘p’ may be undefined [-Wsequence-point] printf("%c%s", *p + *(p-1) - *p, ++p); ^ Result: three
⠠⠍⠥⠓⠁⠍⠍⠁⠙⠽⠥⠎⠥⠋
I can't explain pointers
Anonymous
No problem, if anyone can explain this code, please do
Mat
There are good lessons on the net about pointers
Anonymous
This code?
olli
@ollirz
hi :D the memory of s looks similar to (i changed s to be of type char[3][10] for the memory view) 0x65fdf0: 0x6f 0x6e 0x65 0x00 0x00 0x00 0x00 0x00 0x65fdf8: 0x00 0x00 0x74 0x77 0x6f 0x00 0x00 0x00 0x65fe00: 0x00 0x00 0x00 0x00 0x74 0x68 0x72 0x65 0x65fe08: 0x65 0x00 0x00 0x00 0x00 0x00 after its initialization p points to the last element of s ("three"). You then output *p + *(p-1) - *p which equals *(p-1). This is the symbol preceeding the first letter of the word "three", or the "t" - depending on evaluation order. (char)0 might be printed as whitespace. Afterwards you pre-increment p, so it poinst to the second letter of the word "three", as string, the rest of the word will be printed However it think this triggers implementation defined / undefined behavior since the evaluation order of parameters is not defined! clang will output " hree" (left to right) where gcc will print "three" (right to left)
Mat
So fast😱
Anonymous
Hey @ollirz What is happening here👇 char *p = (char *)s[2];
olli
Anonymous
p points to the "three" string
I mean, i am not getting why/how it is pointing to string "three"?
Jussi
because you + it by 2?
Jussi
p=s[2];
Anonymous
But s is a 2 D array
Anonymous
??
Anonymous
what about this code: #include <stdio.h> Int main() {char s[3][128] ={"one","two","three"}; char *p = (char *)s[2]; printf("%s", s[strlen(p) - strlen(s)]); return 0; }
Mat
But s is a 2 D array
Strings are arrays
Anonymous
Ohaky👍👍
Mat
So s[0] will be "one"
Anonymous
How it happens to be s[0]?
Mat
Or {'o','n','e','\0'}
Mat
How it happens to be s[0]?
It's the first one, so it will be placed in the first position
Anonymous
So s[0] will be "one"
How s[strlen(p)-strlen(s)] = s[0]?
Jussi
It is still a char* after you deref it once
Jussi
As it as char**
Jussi
:)