Message from C, C++ talks

July 2019

— But then in that particular code why he/she used it ?

— I can remove it. But that won't make a difference. I do it for my understanding only

— Can someone help me with this code?

— Https://pastebin.com/20kAGStk

— 

Getting an error like this : warning: no return statement in function returning non-void [-Wreturn-type]
}

— Because the compiler doesn't think the func at line 11 is constructor

— Then what should i do about that?

— Have you ever think about why compiler doesn't treat it as constructor?

— Its name doesn't match up with the class name bro

— 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;
}

Message permanent page

— What does && in the above program does?