Anonymous
Printf does not take pointers to ints for %d just use ,sum not ,&sum
BinaryByter
for one
BinaryByter
but
Anonymous
look at the printf statement
i know spell is wrong
BinaryByter
thats not the problem
BinaryByter
i know spell is wrong
no, the spelling is right
BinaryByter
printf ("The sum of %d" "&sum"); should be printf ("The sum of %d", sum);
Anonymous
no, the spelling is right
where t in printf
Anonymous
Sagar
I put spell right.
Sagar
But same waning
Anonymous
Anonymous
Resend code
Sagar
No
Anonymous
No
Do what maxi said with second printf
BinaryByter
yea do that
Sagar
Anonymous
Sagar
👆
I do but not work
Anonymous
scanf should be like this scanf("%d%d",&i,&j);
Mat
I think prolly is probably
BinaryByter
Sagar please learn C++
BinaryByter
please learn real C++
BinaryByter
please learn it correctly
Anonymous
I do but not work
Open your book, read it and check your syntax
MᏫᎻᎯᎷᎷᎬᎠ
BinaryByter
I should really write a book that initiates beginners to good, modern C++
MᏫᎻᎯᎷᎷᎬᎠ
Better
BinaryByter
#cpp has good links
most of them are too hard for a beginner to understand
Anonymous
BinaryByter
C++17❤️
C++17 ❤️
BinaryByter
Please learn C
Lol C is a joke by today's standard
BinaryByter
think of classes
BinaryByter
you don't have them
BinaryByter
I even have anonymous structs
Anonymous
MᏫᎻᎯᎷᎷᎬᎠ
Sagar
I'm beginners so i learning c language first
BinaryByter
Dont need them
i disagree
MᏫᎻᎯᎷᎷᎬᎠ
Dont need them
Ur life depends on it
BinaryByter
C is way harder than C++
BinaryByter
but offers nothing else
BinaryByter
in a professional context, I would never use C
BinaryByter
The only reason someone might wanna use C is because of embedded systems as @ollirz pointed out to me
MᏫᎻᎯᎷᎷᎬᎠ
I'm beginners so i learning c language first
C is harder than C++ And even worse with volatile shit
Anonymous
i disagree
Doesn't matter thousands of applications and even operating systems don't use them, therefore they are not needed
BinaryByter
C is harder than C++ And even worse with volatile shit
lol volatile shit is probably the least reason
Anonymous
C++ isnt C + something so you dont need knowledge of C first
MᏫᎻᎯᎷᎷᎬᎠ
U know wht
Anonymous
I'm beginners so i learning c language first
or better learn python then c++ than c
MᏫᎻᎯᎷᎷᎬᎠ
Wannna gaming
MᏫᎻᎯᎷᎷᎬᎠ
C++
MᏫᎻᎯᎷᎷᎬᎠ
Gui
MᏫᎻᎯᎷᎷᎬᎠ
C++
MᏫᎻᎯᎷᎷᎬᎠ
Network interfaces
MᏫᎻᎯᎷᎷᎬᎠ
C++
BinaryByter
Gui
and then theres that guy who writes to the framebuffer in C 😏
Anonymous
or better learn python then c++ than c
Slow AF and doesn't suit the use cases of C/C++
Anonymous
go back to asm then
Thats prepostrous, C adds a layer of compatibility and abstraction while retaining most fine control over the system
BinaryByter
Slow AF and doesn't suit the use cases of C/C++
full of bad practices, makes your head go "zurrr"
BinaryByter
Thats prepostrous, C adds a layer of compatibility and abstraction while retaining most fine control over the system
You get even more compatibility and abstraction while containing the same control in C++
MᏫᎻᎯᎷᎷᎬᎠ
Slow AF and doesn't suit the use cases of C/C++
The robot Sophia is getting nowhere with its slowness