[Solve]Problem with c++ in code block | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

[Solve]Problem with c++ in code block

using variable_name * = 3 , I already declare the variable is 1 . cant print out couz expected primary-expression before = problem . at line 2 int a = 1; a * = 3 ; // having problem right here

26th Aug 2018, 12:02 PM
Muhamad Fathi Zuhaili
Muhamad Fathi Zuhaili - avatar
1 Answer
+ 5
Delete the space before the '=', the operator should look like this: a *= 3; // <- *= not the same with * =
26th Aug 2018, 12:23 PM
Ipang