Anonymous
Hello
Body
How do not escape from size of array?
Konstantin
Wow
Anonymous
@vbextreme, learn this please again https://stackoverflow.com/questions/2397984/undefined-unspecified-and-implementation-defined-behavior
Anonymous
You Need to read code written by other developer
written* and yes, I've done it is not once
Anonymous
Now the topic is over
Daniele°
written* and yes, I've done it is not once
Linux, Windows, gtk,systemd, etc, etc etc are all not std C/C++ language
Daniele°
I do not say that it is good :)
You only need #ifdef preprocessor directive for not have ub
Anonymous
Linux, Windows, gtk,systemd, etc, etc etc are all not std C/C++ language
And in OS dev it is reasonable In application software it is not mostly
Daniele°
You only need #ifdef preprocessor directive for not have ub
I understand that it is a very difficult concept for a noobs
Anonymous
You only need #ifdef preprocessor directive for not have ub
But yet it is not what it is designed for
Anonymous
Lol
Anonymous
No
What?
Anonymous
Guys I have one doubt. I'm Engineering student, specialisation in Electronics and Communication. I have an dell laptop, the problem is, I don't know what kind of OS have more suitable for me or my field of study. Any one plz suggest!
Daniele°
What?
ifdef is born for check compiler your use, for examples
klimi
Anonymous
Like real proofs
Anonymous
Any OS
But not Kali though
Anonymous
Any OS
Any OS mean? I'm interested to learn programming section that's why I asking help!
Anonymous
Are you from India?
Daniele°
Now let's do some proofs
You build with -pedantic -std?
Daniele°
Yep
Ok foo(a++,a++);
Anonymous
How about Linux mint? Gud or bad? Any one used?
Anonymous
Ok foo(a++,a++);
Maybe you mean foo(++a,a++);?
klimi
#ot
Daniele°
Is ub for the standard
Daniele°
Same foo(++a,a)
Daniele°
Or foo(a++,a)
Anonymous
Ok foo(a++,a++);
I think it is pretty straight-forward because in any argument eval order result will be the same, is not it?
Anonymous
Oh, I got ya
Daniele°
For the std is ub
Anonymous
Yes but compiler decide order
In this case the order doesn't matter
Daniele°
Because std not declare order
Anonymous
I do not write the code like this anyways, I'm a sane person
Daniele°
In this case the order doesn't matter
a=1; foo(++a,a++); left to right: foo(2,2); Right to left foo(3,1);
Anonymous
Pls fix this problem of code.... int Value(int int) void main() int x=7; int y=4; Float Area; float value() float value(int a,int b) Area=A*A .. ..
Daniele°
a=1; foo(++a,a++); left to right: foo(2,2); Right to left foo(3,1);
Other implementation left to right foo(2,2); right to left: foo(2,2); Depend when decide execute a++ After evalutate argument or line. gcc use argument
Anonymous
Oh
Anonymous
Ok
Anonymous
I got the whole point
Daniele°
Now do for this one foo(a++,a++);
foo(1,2) foo(2,1) foo(1,1) All are valid
Anonymous
The topis is over
Daniele°
foo(1,2) foo(2,1) foo(1,1) All are valid
You Need to read compiler documentation and add ifdef
Daniele°
Daniele°
For examples, Linux and Windows
Anonymous
for starters you have no curly brackets
Ok that is fine but I need to know About how to declare a function in globally....?
Nameful
Ok that is fine but I need to know About how to declare a function in globally....?
void pleasant_function() { std::cout << "hello!"; }
Anonymous
For examples, Linux and Windows
Yep, but it is kinda reasonable there
Anonymous
Now WE STOP THIS
Daniele°
Yep, but it is kinda reasonable there
C ++ masks a lot behind its abstractions
Anonymous
Please stop
Daniele°
Please stop
If you use C++ is rare to use this, if you use rust not have need of this
Anonymous
void pleasant_function() { std::cout << "hello!"; }
Actually this is Function definition are not declaration
Daniele°
Daniele°
p.s. for C++ rare on desktop, every day on mcu
p.p.s. For examples Major code of Arduino uno of C++ is ub/dialect aka compiler dependent
Daniele°
We all got you, thanks
In reality not exist C true compiler for arduino
Anonymous
I_Interface
3/2 warns, yoohooo.
Anonymous
Hi
klimi
Hello
Anonymous
Hello
Hello nya
Anonymous
Hi good afternoon to everyone
Anonymous
I've got a problem while assigning "+2" to an int variable. I've looked it up on Google and I need to use string or something like that, which I do not really know how. So could someone help me out? Thank you so much!