tell me the output of the following c program and the reason behind it

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Shivi Wariku
    New Member
    • Dec 2017
    • 1

    tell me the output of the following c program and the reason behind it

    tell me the output of the following c program and the reason behind it
    long int a=400*400/400
    result =72
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    I have no idea. int a has a value but result is another int. Maybe you could display int a?

    Comment

    • StevenMeng
      New Member
      • Dec 2017
      • 1

      #3
      You pay attenion to the priority

      Comment

      • donbock
        Recognized Expert Top Contributor
        • Mar 2008
        • 2427

        #4
        Please provide the actual source code for the calculation plus the code that reported the result.

        Comment

        Working...