Welcome to AMIE Study - AMIE India Students Forum

AMIE Study - AMIE India Students Forum

collapse collapse

* Shoutbox

Refresh History
  • girish_amie: Please upload electrical engineering latest question paper
    December 06, 2017, 09:25:40 AM
  • JYOTI VERMA: agr kisi ko apna exam city and center change krana hom to use kya krna chahiye plz suggest.
    October 14, 2017, 01:16:11 PM
  • JYOTI VERMA: amie ka exam center kaise change kr skte hai agr kiisi ko pta ho to plz btaiye .
    October 14, 2017, 01:15:31 PM
  • anoop.goyal9: error in online fee payment for winter 2017 examination
    October 12, 2017, 07:23:34 AM
  • ramajit: [link]
    October 06, 2017, 12:34:12 PM
  • ramajit: yes.. results announced... me 2/3 passed in Sec-B prodn Engg... xo xo... wow....
    October 06, 2017, 12:34:09 PM
  • suji.sujithraj: Guys check your results... its announced...!!!
    October 06, 2017, 10:26:53 AM
  • ramajit: summer'17 result will come or not ?
    October 06, 2017, 06:44:28 AM
  • jitu12341: Result has been declared ♡♡♡♡
    October 06, 2017, 06:30:56 AM
  • jitu12341: breaking news results will be publshed in March 18 along with winter 17
    October 04, 2017, 12:54:36 PM
  • ramajit: any tentative date aware about Summer'17 result
    October 03, 2017, 03:13:48 PM
  • nelokulood: What is the last date to apply for lab and project for winter 2017 session
    October 02, 2017, 11:39:31 AM
  • nelokulood: When will amie summer  2017 results be published
    October 02, 2017, 11:38:50 AM
  • SnrTech: please upgrade my membership to super member I already made payments Rs.500/- into bank account
    September 27, 2017, 11:17:12 PM
  • jitu12341: Is there anybody having EL 404, circuit and field theory notes  please mail on [email protected]
    September 23, 2017, 05:53:34 AM
  • jitu12341: Result is expected in first week of October
    September 23, 2017, 05:48:39 AM
  • manirock87: Result kab aayega for summer 2017
    September 22, 2017, 06:59:35 AM
  • mudassir.search007: Do i need to pay a separate fee for the Section A examination after paying the re-registration Fee (SEC A)
    September 20, 2017, 10:25:06 PM
  • kirannm: sorry just checking
    September 16, 2017, 08:07:00 PM
  • kirannm: hjhhjdfhj
    September 16, 2017, 08:06:43 PM

* Search


* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Board Stats

  • stats Total Members: 48503
  • stats Total Posts: 27304
  • stats Total Topics: 6595
  • stats Total Categories: 6
  • stats Total Boards: 31
  • stats Most Online: 626

Author Topic: How the k=14 in give equation plese help  (Read 1009 times)

Description:
November 20, 2012, 04:43:03 PM
  • Registered User
  • *
  • Posts: 13
    • View Profile
Advertisement
what value will the floowing C statement will assign to integer variable k?
k= (5+3/2*2)*(5%3)
It is 14 have checked by compiling but unable to under stand logic behind it. if some body knows please help.
« Last Edit: January 01, 1970, 04:00:00 AM by Guest »


November 21, 2012, 08:24:30 AM
Reply #1
  • Registered User
  • *
  • Posts: 9
    • View Profile
Hi jitu

as per my knowledge using BODMAS rule (ref: http://http://www.mathsisfun.com/operation-order-bodmas.html) here:

the expression can be solved as below:

1st : (5+3/2*2)*(5%3) => (5+3/2*2)*2
2nd : (5+3/2*2)*2 => (5+1*2)*2
3rd : (5+1*2)*2 => (5+2)*2
4th : (5+2)*2 = > 7 * 2
5th : 7 * 2  => 14
« Last Edit: January 01, 1970, 04:00:00 AM by Guest »
November 21, 2012, 10:22:15 AM
Reply #2
  • phpBB Moderator
  • Senior Member
  • **
  • Posts: 877
    • View Profile
hi jitu,
as manikumar said u should always follow the BODMAS rule.
solve the problem BO Bracket, division, multiplication, Addition & subtraction.
« Last Edit: January 01, 1970, 04:00:00 AM by Guest »
Regards,
Charulatha.
 

Related Topics

  Subject / Started by Replies Last post
0 Replies
252 Views
Last post September 08, 2009, 02:59:40 PM
by cassay
4 Replies
1042 Views
Last post July 07, 2011, 05:07:44 PM
by nilesh_20
6 Replies
556 Views
Last post September 29, 2011, 08:36:58 AM
by charulatha
3 Replies
706 Views
Last post September 29, 2011, 07:27:58 PM
by ayush.s
3 Replies
825 Views
Last post June 17, 2012, 09:09:42 PM
by KUS
3 Replies
779 Views
Last post April 18, 2013, 01:02:54 PM
by visualcpp
1 Replies
779 Views
Last post October 16, 2012, 07:54:12 PM
by mahavirbarta

* Search

* Subscribe to Forum

Enter your email address:

Advertisement