+ 1

What is the value of the C ?? C = b++(+a); if b = 5; and a =11;

I think it will be error .. some guys said the new virsions of compilers didn't accept this syntax .. but in the old virsions of compilers it work so i want to know if it is error in old version compilers or it will work ??!

1st Nov 2021, 4:43 PM
Taha khaled
Taha khaled - avatar
16 Respostas
+ 2
C=b++ +(a) this is valid but C=b++ (+a) // this is not valid it will give you errors check your question again may be you missing something
1st Nov 2021, 7:07 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 3
Syntax Error!
2nd Nov 2021, 10:02 AM
Ashif
Ashif - avatar
+ 2
There would be error. Why you don't check in Solo-Learn Code Playground.
1st Nov 2021, 5:18 PM
A͢J
A͢J - avatar
+ 2
Taha khaled In older version will also not work because that is wrong syntax.
1st Nov 2021, 5:46 PM
A͢J
A͢J - avatar
+ 2
I'm sorry man but when I have read it first time I had get an error at my head How C= b++ (+a) could be work
2nd Nov 2021, 7:03 PM
‎محمد نور درويش بوشي‎
‎محمد نور درويش بوشي‎ - avatar
+ 1
Please Help guys 🥺
1st Nov 2021, 4:44 PM
Taha khaled
Taha khaled - avatar
+ 1
A͢J - S͟o͟l͟o͟H͟e͟l͟p͟e͟r͟ because this syntax may work in old versions of compilers and sololern-compiler is new version .. so that i want to know if this syntax was used in the past or it was error
1st Nov 2021, 5:44 PM
Taha khaled
Taha khaled - avatar
+ 1
Ash C or C++
1st Nov 2021, 5:45 PM
Taha khaled
Taha khaled - avatar
+ 1
It will give you error
3rd Nov 2021, 3:17 AM
Devansh Tiwari
Devansh Tiwari - avatar
+ 1
Syntax error
3rd Nov 2021, 10:20 AM
Balogun Feranmi
+ 1
May I know which compiler ( and which version ) was it tested to give a false positive ?
3rd Nov 2021, 1:56 PM
Arsenic
Arsenic - avatar
+ 1
u mean b+++a, brackets will giv error.
3rd Nov 2021, 4:38 PM
AW4
AW4 - avatar