Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
C
tell me the output of the following c program and the reason behind it
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Shivi Wariku
New Member
Join Date:
Dec 2017
Posts:
1
#1
tell me the output of the following c program and the reason behind it
Dec 7 '17, 06:59 AM
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
Join Date:
Mar 2007
Posts:
9214
#2
Dec 7 '17, 07:55 PM
I have no idea. int a has a value but result is another int. Maybe you could display int a?
Comment
Post
Cancel
StevenMeng
New Member
Join Date:
Dec 2017
Posts:
1
#3
Dec 8 '17, 05:22 AM
You pay attenion to the priority
Comment
Post
Cancel
donbock
Recognized Expert
Top Contributor
Join Date:
Mar 2008
Posts:
2427
#4
Dec 8 '17, 11:04 AM
Please provide the actual source code for the calculation plus the code that reported the result.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment