Anonymous
http://books.goalkicker.com/CBook/
Anonymous
This too
Riyaz
Thanks bro
Anonymous
Write a program that will accept two numbers from user and print their edition without using + operator in C programming
Anonymous
Fast please answer
Anonymous
What's the problem with the code you have written for this exerciose?
Anonymous
Or do you think we're going to do it for you?
Group Butler
@admin
Reported to 2 admin(s)
Mat
Welcome
Anonymous
hm, the exercise is trivial if you can use operator-
Anonymous
lol 😆
Anonymous
GCC optimized the solution to an add
Anonymous
Looking at the assembly
Anonymous
:)
Roxifλsz 🇱🇹
https://t.me/dev_community/18
Don't flood the group with links like this please. They do seem useful, but that looks almost like spam.
Anonymous
Oh wait, is ++ allowed?
Anonymous
I just did it this:
Anonymous
-((-a) - b)
Anonymous
No + here
Anonymous
if you do the math, this equals -(-a + -b)
Anonymous
and then (a+b)
Mat
-((-a) - b)
That's a kid level mathematical answer for a kid level mathematical question. If that was an allowed solution, it's also irrelevant the in C programming part
Mat
And i don't think it's a valuable use of our time :)
Anonymous
Well, then implement a binary adder which adds bit for bit
Anonymous
would that be valuable?
Anonymous
warn for what?
Mat
Why?
Anonymous
Why?
New tg users, reading msgs, clicking on warn
Anonymous
ah
Anonymous
Gets annoying but cant blame anyone
Anonymous
Well, tbh, on a hardware level, a sub is just an add where the second operand is negated, and ++ is either a add 1, or a very similar circuit
Anonymous
so idk, but the bit adding solution might be the only "true" way of doing this
Anonymous
if e.g. the ALU didn't have add in-built
Anonymous
It would seem strange having inc but not add
Anonymous
https://stackoverflow.com/questions/1149929/how-to-add-two-numbers-without-using-or-or-another-arithmetic-operator
Anonymous
:D
Anonymous
Hello frds
Group Butler
Start me to get the list of commands
Mat
@admin I'm sorry if i do a lot of reports :/ Tell me if it's the case
Roxifλsz 🇱🇹
Now that looks like a scam
Roxifλsz 🇱🇹
Anonymous
Hi programmers
deltanicola
hi
Roxifλsz 🇱🇹
/warn posting shady shit that looks like a scam (the earn a lot part, how can anyone trust you honestly)
Group Butler
Psn has been warned (1/3)
Anonymous
/warn
Mat
/warn
Don't touch blue text. That's becoming annoying
Anonymous
Agreed
Anonymous
(Except if the blue text is a link)
Mat
(Except if the blue text is a link)
I'd not touch it, either
Anonymous
depends on the link and if you have a good antivirus etc.
Anonymous
If the link is stackoverflow, you can safely click it
Ks
/warn
Anonymous
My OS windows 7 . I used I turbo c++ compiler.when save my c program in d drive or e drive like wise. When I compiled my program it will give error. The same program I am going to save in c drive bin, it will compile and run successfully. What's is problem I need to save my file in d drive is it possible?
M.Azam
What is operator (? : )
Anonymous
What is operator (? : )
Ternary catetogy operators
M.Azam
Ternary catetogy operators
Any examples of usage in code
Liam
Any examples of usage in code
<expression_a> ? <expression_b> : <expression_c> (almost) equals to if (<expression_a>) { <expression_b> } else { <expression_c> }
Anonymous
/help@GroupButler_bot
Anonymous
Turbo C++ is discontinued, do not use it.
School students are forced to use it..
Anonymous
I know how it feels like 😣
Etaoin
tc is tooooo old!
Etaoin
School students are forced to use it..
our school forces to use vc6
Etaoin
but i am using vs2017:)
Anonymous
hi
U got a nice chik
deltanicola
U got a nice chik
...thank you(?)
Anonymous
What compiler do you usually use.
⚛ Hz
Clang (
Anonymous
I'm using visual Stdio.