Message from C, C++ talks

July 2019

— AH!

— Got it

— Sorry man, thanks tho

— U r welcome

— 

#include<iostream>

using namespace std;
int N = 10;

int main()
{
static int x = 1;
if (cout << x << " " && x++ < N && main())
{ }
return 0;
}

— What does && in the above program does?

— Hi guys

— /Hi

— ✋hi!!

— Is a logical binary operator and takes two operands

— As far as i understood you can replace main() with 0

— That can not be replaced

— Why does this not work as expected?

— This kind of shitty code i seen the first time 😂

— Did a gdb there, can clearly see a and b hold same addresses