Mihail
int a=2; Cout <<a*++a; // 9
https://godbolt.org/z/OJdKpo
Mihail
clang gives 6
Mihail
so yeah
keshav
Hey
Mihail
it's ub don't try and understand it
Mihail
there's no point
Ибраги́м
Ak47
int a = 2, b; b=a++; // b= 2 Why b takes 2 ? However post ++ have higher precedence than assignment operator.
MᏫᎻᎯᎷᎷᎬᎠ
Yes.
Wow
Mihail
int a = 2, b; b=a++; // b= 2 Why b takes 2 ? However post ++ have higher precedence than assignment operator.
b takes the value of a which is afterwards incremented. what is wrong here?
keshav
Ok sry bro
Nikolas
int a = 2, b; b=a++; // b= 2 Why b takes 2 ? However post ++ have higher precedence than assignment operator.
This is correct. The value of a gets to b, and then a gets incremented. This is the definition of pre and post increment operators
keshav
Plz anyone send notes on group
Ak47
b takes the value of a which is afterwards incremented. what is wrong here?
Post ++ have higher precedence then assignment operator so increment should take place first
Mihail
Ak47
Ohh..I understand
Ak47
Thanks everyone
Anonymous
.
Maraki
ኡኡኡ
Asad
Hey guys! Does Visual Studio require Compiler?
Asad
Itself
Asad
2019 version
Talula
It is supposed to come with a compiler.
Talula
If you're talking about visual studio code then yes it does.
Pavel
2019 version
You can install the compiler with it. There's "C++" in components
Pavel
Usually it selected by default
Talula
C++ isn't but C# and VB are.
Pavel
"Desktop development with C++"
Asad
Uhuh... BTW Which one is better: VSCode or VS itslef?
Talula
Uhuh... BTW Which one is better: VSCode or VS itslef?
Two different things, visual studio code is an editor, while visual studio is an IDE.
Nehemiah Aklil
Asad
I am actually having hard time choosing an environment. I tried Dev-C++, CodeBlocks, VSCode(really confused me)....
Nehemiah Aklil
I am actually having hard time choosing an environment. I tried Dev-C++, CodeBlocks, VSCode(really confused me)....
Code blocks is the best 👍 Also try out falcon if ur looking for a light weight fast IDE
Asad
Why it is such difficult? When I used Python everything is easy...
Talula
I am actually having hard time choosing an environment. I tried Dev-C++, CodeBlocks, VSCode(really confused me)....
What do you wanna do? If you want to develop CLI application then use Dev-C++ but if you want to make GUI front end application with C++ use either VS or something that is easier to work with.
Talula
Asad
Web-development????
Nehemiah Aklil
Nehemiah Aklil
HTML
Talula
HTML isn't really web development imo
Nehemiah Aklil
That is in C# right?
C# using ASP.NET use VS
Francisco
Windows 7 for now
If you want to do C++, go for Visual Studio, there's almost no other good option
Nehemiah Aklil
Nehemiah Aklil
For GUI definitely
Talula
If you want to do C++, go for Visual Studio, there's almost no other good option
He is doing HTML and python, I don't think GUI C++ is his thing yet.
Nehemiah Aklil
Why don't we take this disscusion to off topics
Francisco
He is doing HTML and python, I don't think GUI C++ is his thing yet.
We're not talking about GUIs (I think), and also I specified for C++ development. For general programming purposes, he should use VSCode, Atom, or even pay for SublimeText
Francisco
Why don't we take this disscusion to off topics
I think selecting an IDE for C++ development is really on-topic
Talula
I want to do back end development
In C++? Really... Use nodejs.
Asad
Using C++
Nehemiah Aklil
Using C++
Back end c++😳
Talula
Using C++
That is a bad idea... Very bad to be exact...
Asad
It is fast, stable, secure, powerful...
Nehemiah Aklil
It is fast, stable, secure, powerful...
But it's not remotely realted with web development
Nehemiah Aklil
It is fast, stable, secure, powerful...
Wat framework are u gonna use?
Asad
So why tech giants mostly use C++?
Asad
Wat framework are u gonna use?
I don't know, yet. I am new to Computer Science.
Amit
Amit
Anyone help me
Amit
During installing Kali Linux
Nehemiah Aklil
So why tech giants mostly use C++?
they use it when they need speed in there code for example in rendering graphics for games
Nehemiah Aklil
Talula
So why tech giants mostly use C++?
Not for backend development it's mostly for low level stuff where they have to develop some libraries.
Asad
they use it when they need speed in there code for example in rendering graphics for games
What are you talking about? Game? I mean Facebook, Google, Amazon uses C++
Asad
Just a moment...
Talula
What are you talking about? Game? I mean Facebook, Google, Amazon uses C++
Yes for few of their small core level libraries, not for developing their backend of website.