I am a novice to computer C programming,(adsbygoogle = window.adsbygoogle || []).push({});

here the progrm:

int main()

{

int x;

cin>>x;

int y1=6*x; //[1]

int y2=5*x; //[2]

cout<<y1<<y2;

}

which [1] or [2] is evaluated first or equally evaluatd at the same time?

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Share an x variable

Loading...

Similar Threads for Share variable |
---|

How to understand dimensionless data of MacCormack's method |

Numerical Integration with variable limits MATLAB |

C/++/# Buffer sharing |

C/++/# How to integrate when one of the limits is a variable? |

**Physics Forums | Science Articles, Homework Help, Discussion**