Doubt in my code_pre increment and post increment without using arithmetic operator | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Doubt in my code_pre increment and post increment without using arithmetic operator

https://code.sololearn.com/c9WDtXR2X2j5 hi friends here is my code..... i am getting wrong output for some inputs. like for 3 ,7,11 why is it happening like that.....please correct the code if any errors.

22nd Jun 2019, 4:32 AM
malepu rakesh
malepu rakesh - avatar
2 Answers
+ 3
Line 36: *x=*x^1; ==> *x=*x^m;
22nd Jun 2019, 5:23 AM
Anna
Anna - avatar
+ 1
Thank you friend
22nd Jun 2019, 8:40 AM
malepu rakesh
malepu rakesh - avatar