Asdew
No, you cannot.
Alion🦁
Okay, thanks.
Asdew
#ot
Alion🦁
should I write here? 🤔
Asdew
Yes.
Alion🦁
Okay, thanks again 🌹
Asdew
(Assuming it's not C or C++ related.)
Alion🦁
Konstantin
I have a question about temporary objects and theirs life. printf("%s", make_string().c_str()); So far as I remember, for C++03 it is invalid code; bcs returned objects will be destroyed before printf() is done. Is it true? Is anything changed for C++17/20, or still invalid?
Asdew
We will not solve your assignments for you.
Rakesh
How i learn coding online
Anonymous
How i learn coding online
Download sololearn app
YASH DEEP
Where do I start a programming
Asdew
Where do I start a programming
At your home by reading and practicing.
Som
Hey guys
Som
The output should have been 47 instead of (43+4) Can anyone help me out with this ?? Much appreciated
Asdew
You are just printing the text "address =( 43 + 4)" as it is in double quotes.
Som
Oh i got it! Now i think i have to remove the ""?
Artöm
Oh i got it! Now i think i have to remove the ""?
Choose what are strings to output, what is other data
Anonymous
The output should have been 47 instead of (43+4) Can anyone help me out with this ?? Much appreciated
I don't know c++ so I would try to explain in c You used (43+4) in print or cout so it is printing that as statement there is no use of function. You should call function to make it work . Like in c print("answer=%d",address(x,y)); I hope I am right
Anonymous
Got it Ritik Tysm ❤
My pleasure 😁
rawagent
I am need Microsoft excel software. Anybody have
Artöm
How is it C++ related?
Nils
How is it C++ related?
I guess he wants some library to parse excel files
Dexter
Is there any offtopic group
Dexter
Artöm
#ot
abdullah
abdullah
where is my fault
Artöm
Show error message
Nameful
try looking at the error?
Artöm
Constructors have wrong name, r should be small
Nameful
Constructors have wrong name, r should be small
Or class name should be uppercase
abdullah
okay guys thanks
Anonymous
Re statement the constructor in main program.
abdullah
abdullah
thanks
Anonymous
It's look there 11111 members.
Anonymous
Hey friends! I'm new in this channel
Anonymous
11111 members and 777 online.. looking so nice!!!!!
Anonymous
😂😂
Anonymous
Anonymous
Rose is AI bot. 😏
Anonymous
Is there any AI bot like Rose
Zeus
Why is c++ tough than java?
rawagent
Anu body know why that error came please solve my problem
rawagent
Pavel
That's not a C/C++ question and you can google the solutions by the error text
Anonymous
!report this should get 2 warns for screenshot of photo of screen
Monday Morning
Zeus
It isn't.
Imo it is... I find java easier.. no pointers lol
Zeus
Or operator overloading haha
Monday Morning
So lack of a feature makes it easier ?
Liam
/warn no screenshot plz
Emir
why this code not compiled?
Emir
why this code not compiled?
a((void *)0); I wrote this and it compiled NULL = (void *)0;
Liam
why this code not compiled?
NULL is defined as 0. The compiler doesn't know which overload to use.
Liam
In modern C++, use nullptr instead.
Anonymous
void * can easily cast to char *
Guy
if NULL = 0 why isn’t called second function
each variable is defined as NULL or not NULL, so it matches all of those easily
Emir
This code compiled and it printed 4
Liam
if NULL = 0 why isn’t called second function
'cause it could be cast to void*. overloads here are ambiguous.
Liam
Liam
In a word, in modern C++, use nullptr to represent null pointers. If typed pointers are required, static_cast<T*>(nullptr) should be used. Avoiding the use of NULL is always recommended in modern C++ context.
Anonymous
null means (void *)0
that's for C. in C++, NULL is not allowed to be defined as an expression with pointer type
Liam
And, in C, one cannot overload functions.
Liam
in c++ null define is long?
no, it's #define NULL 0.
Anonymous
in c++ null define is long?
glibc defines it as the magic __null. which is an integer with the same size as sizeof(void *)
Emir
no, it's #define NULL 0.
why is this code print 4
Emir
0 means (long)0 ?