422,734 Members | 1,335 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 422,734 IT Pros & Developers. It's quick & easy.

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

P: 1
tell me the output of the following c program and the reason behind it
long int a=400*400/400
result =72
Dec 7 '17 #1
Share this Question
Share on Google+
3 Replies


weaknessforcats
Expert Mod 5K+
P: 9,132
I have no idea. int a has a value but result is another int. Maybe you could display int a?
Dec 7 '17 #2

P: 1
You pay attenion to the priority
Dec 8 '17 #3

Expert 100+
P: 2,373
Please provide the actual source code for the calculation plus the code that reported the result.
Dec 8 '17 #4

Post your reply

Sign in to post your reply or Sign up for a free account.