Zidane
I mean what is the difference between if and else if
Løstrëgõ
I have question one more What is the difference betwen using if and if else instead of 2 if
In 'else if ladder' if one of the 'if' condition become true then other 'if' will not check If we use multiple 'if' statement we can check multiple conditions For eg:- Int x=0; If(x==0){ printf("%d",x); x=1; }else if(x==1){ printf("%d",x); } Output:- 0 Int x=0; If(x==0){ printf("%d",x); x=1; } if(x==1){ printf("%d",x); } Output:- 0 1
Zidane
well,if we use just" if" the actuator checks all conditions
Zidane
but if we use if end else if when actuator finds the true conditions,it stops
Zidane
did ı get true?
yu
h
Proff
Hi
yu
hi
Rose
Purge complete.
Mr
#include <stdio.h> int main() { int a = 10; if (a == a--) printf("TRUE 1\t"); a = 10; if (a == --a) printf("TRUE 2\t"); } Can anyone tell me how this code snippet printing TRUE 2
レイジーコーダ 
It’s going to help you
Mr
First it compare and after it subtracts
Here was talking about the second if else statement, if it compare and it subtract then the first if else condition will execute, because a—; means return the value first and then decrement, but it is not happening here.
Mr
Sometimes take times to read the documentation
but now I understood that's undefined behavior
レイジーコーダ 
You’ve separated statements
レイジーコーダ 
None of them have dependencies
レイジーコーダ 
Which means both will execute
レイジーコーダ 
You need to understand also how compiler evaluate expressions
Mr
First it compare and after it subtracts
actually no I don't need to understand how to fix it, just I wanted to know why it's happening
klimi
#meta
Rose
Don't ask meta questions. In other words, don't ask to ask. Questions like "Does anyone know XYZ?", "Has anyone used XYZ?" or "Can someone help me?" are all considered meta questions because they don't specify what your actual problem is. These questions give the impression that you want people to approach you and offer their help as if they don't have any other work to do. Now doesn't that expectation make you look like an idiot? If you have a question ask it directly. You are more likely to get a response that way.
Rose
Purge complete.
Rose
That's 2/2 warnings; 何为小念 is banned! Reasons: 1: consistent offtop after join 2: non-english
Rose
User Hassan has 1/2 warnings; be careful! Reason: rude offtopic
Rose
Another one bites the dust...! Banned hemanth. Reason: stupid
Ludovic 'Archivist'
Stop clicking blue texts
Ludovic 'Archivist'
why so?
because I will ban you
Nothingo
Danya🔥
/blue_text_must_click
Ludovic 'Archivist'
What server? You mean the group?
Yeah, sorry, IRC habits
MᏫᎻᎯᎷᎷᎬᎠ
Yeah, sorry, IRC habits
I didn't get the reason why
Ludovic 'Archivist'
I didn't get the reason why
Just didn't feel like staying if not active
MᏫᎻᎯᎷᎷᎬᎠ
MᏫᎻᎯᎷᎷᎬᎠ
Weird Madhu was a valuable resource in the group anyway
Ludovic 'Archivist'
This group isn't active?
No Madhu was not active
Ludovic 'Archivist'
(from their point of view)
MᏫᎻᎯᎷᎷᎬᎠ
Oh
Rose
User yusuf has 1/2 warnings; be careful! Reason: don't click every blue text you see 😐
Rose
User Eweelz has 1/2 warnings; be careful! Reason: don't click every blue text you see 😐
Rose
That's 2/2 warnings; Eweelz is banned! Reasons: 1: don't click every blue text you see 😐 2: don't click every blue text you see 😐
Dima
Kenshin
Stop clicking blue texts
Sorry, what does this mean?
Кіт ✙
Sorry, what does this mean?
don't click blue texts
Zidane
guys in switch case can we use just letter and number
Zidane
can we use word after case
Ziky
can we use word after case
It compares numbers. If you by word mean constant than yes, If you mean string than no. Unless you want to compare pointers of that strings
Zidane
okey thank you
ASTRO
Are here any people with backend knowledge when it comes to ip adresses and stuff. I know its prob not c+ related
ASTRO
There is an Ip adress of XAI that got scanned. There are 3 projects, grok, ide and web. Website for WEB isnt released yet/not deployed and i would love to know what's behind this Elon project
Melvin ♣️
What's the best site to learn c++
ASTRO
Prob Youtube 😅
Rose
What's the best site to learn c++
Please check out this channel - @Resources for information on learning sources for C and C++ (books and videos) and Frequently Asked Questions.
Crazy💖
How do learn C++
Never Spam Bot
..?. sent multiple messages that looks like a spam. If they send more spam - like messages, they will be muted. Only admins can unmute them. Spam deleted in this group: 122 See spam? Quote it and send /spam
Karan
How to i practice c++
Karan
I have learned the basics of c++ and hackerrank feels like its so difficult
Ludovic 'Archivist'
Is C++ your first programming language?
Karan
Yes
Ludovic 'Archivist'
Then you may want to confirm your knowledge on simpler exercises, you may also want to learn what the standard library can offer you
Ludovic 'Archivist'
How to i practice c++
https://adriann.github.io/programming_problems.html This page has a list of problems that are very handy for self taught beginners
Ludovic 'Archivist'
I have learned the basic like maybe loops, recursions , inheritance etc
Then you need to practice the standard algorithms and using iterators
Ludovic 'Archivist'
inheritance is not important
Karan
Then you need to practice the standard algorithms and using iterators
Should i first opt for DSA or solve the given set of questions?
Ludovic 'Archivist'
Should i first opt for DSA or solve the given set of questions?
Look at the questions, look if there is anything in the C++ standard library that solves it, if there is, learn how to use it, otherwise do some research by yourself to actively find a solution. This will make the learning more effective and help you memorise how to later work with the language to solve problems
Artem
Hello everyone, i have been trying to install C++ compilator about a week and try to find answer in google, believe i will find answer here. Now i have the error (The term 'g++' is not recognized), but i installed msys and indicate a path in System Properties. I would be happy to have any help)
Ludovic 'Archivist'
Hello everyone, i have been trying to install C++ compilator about a week and try to find answer in google, believe i will find answer here. Now i have the error (The term 'g++' is not recognized), but i installed msys and indicate a path in System Properties. I would be happy to have any help)
Hey, first, to make sure that you actually set up the path correctly and that it is not a case of '+' being recognized weirdly, try to see if gcc is accessible. If it is not, then verify that your path to msys g++ is setup properly by going to your environment window, copying the path here, and opening it in the file explorer. if the folder you land in doesn't contain g++, then the setup of the path was not done properly
Artem
"if gcc is accessible" how i chould do this? I have this path "C:\msys98\mingw64\bin" and there is empty fore some reason in folder, and second path is "C:\msys98\usr\bin" there is not empty but also for some reason there is not g++ although the same path was in video that i folowwed