Do I need to learn these precedence of operators or they will automatically set in my mind with the time and practice.
Precedence of operators
hello @yashsharma4304
no need to learn them.
yeah it will get stuck to ur mind by repeteative practice.
also u can always use brackets ( ) around expression if u are not clear with precedance .of its operator.
for example.
*p . x
let say u dont know what operation will be executed first ,will it be p . x or *p
in such case u can put bracket around expression that u want to eecute first.
(*p).x;
now first *p will be executed and then (*p).x
1 Like
also u can always use brackets ( ) around expression
Thank you for clearing the doubt and this tip. 