Welcome to AMIE Study - AMIE India Students Forum

AMIE Study - AMIE India Students Forum

collapse collapse

* Shoutbox

Refresh History
  • [email protected]: Can anyone tell if Saudi Engineers Council accept  AMiE or not?
    July 18, 2018, 11:38:24 AM
  • Khadeejath Shamna: Can we send section b registration form and examination form together?  When can we register for section b winter exam 2018?
    July 09, 2018, 03:46:15 PM
  • GCPATIL: How to change mobile number and email address
    July 09, 2018, 01:33:10 AM
  • Sanoj.kaushik: Hi everyone, It is informed that civil lab experiments at Manav Rachna Institute would be started in mid july. So, kindly informed to other friends.
    June 15, 2018, 05:33:15 PM
  • ramajit: yes. i also need help for project work. any format or ref available. pls send me email [email protected]
    June 12, 2018, 10:22:21 AM
  • JYOTI VERMA: mail me on [email protected]
    June 10, 2018, 09:33:12 PM
  • JYOTI VERMA: i wqnt to know about mechanical project work topiics.please send me it on my mail if any one have
    June 10, 2018, 09:32:34 PM
  • JYOTI VERMA: hi
    June 10, 2018, 09:31:45 PM
  • ravihgaali: Plz send me 2018 summer Section A question papers. My email is [email protected]
    June 07, 2018, 02:24:16 PM
  • ravihgaali: Plz send me 2018 summer Section A question papers
    June 07, 2018, 02:23:54 PM
  • abhijit deshmukh: hi , anyone have sectional B Electrical Engineer Optional Subeject question paper plez send me my Mail ID : [email protected]
    May 29, 2018, 03:51:55 PM
  • kathiravanlks: Mc 423 analysis and synthesis questions papers if y have share ....pls
    May 29, 2018, 11:19:54 AM
  • St6301790: hey can any one help me to download my admit card for section B. I am new in section B
    May 27, 2018, 06:15:42 PM
  • Vickytrips: Hii everyone....plz suggest book regarding design of electronics devices and circuit and electronics circuit
    May 16, 2018, 05:48:52 PM
  • vikas2eg: For AMIE Sec-A&B handwritten study material contact - [email protected] or [email protected] 8349801101
    May 02, 2018, 09:46:13 PM
  • mf1482: I need Mining Engineering MN 413 Old question papers. Can anybody Provide?  sunil  9414245175
    May 01, 2018, 09:35:03 PM
  • manirock87: HI RAAHUL.YG, FOR ANY STREAM, PROJECT AND LAB IS COMPULSORY FOR SECTION BIS
    April 28, 2018, 09:07:02 PM
  • manirock87: HI ANKI22 NO ONE ELSE CAN HELP. U NEED TO SEND MAIL TO [email protected] AND CALL AT 03340155400
    April 28, 2018, 09:05:47 PM
  • anki22: can any one  help.?. what is mean of login here ..if no one can help
    April 13, 2018, 11:48:34 PM
  • raahul.yg: Section B MECHANICAL project
    April 12, 2018, 02:11:42 PM

* Search


* User Info

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

* Board Stats

  • stats Total Members: 48649
  • stats Total Posts: 27327
  • stats Total Topics: 6603
  • stats Total Categories: 6
  • stats Total Boards: 31
  • stats Most Online: 626

Author Topic: How the k=14 in give equation plese help  (Read 1148 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
326 Views
Last post September 08, 2009, 02:59:40 PM
by cassay
4 Replies
1193 Views
Last post July 07, 2011, 05:07:44 PM
by nilesh_20
6 Replies
698 Views
Last post September 29, 2011, 08:36:58 AM
by charulatha
3 Replies
852 Views
Last post September 29, 2011, 07:27:58 PM
by ayush.s
3 Replies
950 Views
Last post June 17, 2012, 09:09:42 PM
by KUS
3 Replies
877 Views
Last post April 18, 2013, 01:02:54 PM
by visualcpp
1 Replies
888 Views
Last post October 16, 2012, 07:54:12 PM
by mahavirbarta

* Search

* Subscribe to Forum

Enter your email address:

Advertisement

* Recent Posts

Re: making whatsapp group by Jayeshkarthick
[July 06, 2018, 01:25:46 PM]


Re: making whatsapp group by Bikash Chatterjee
[June 13, 2018, 06:38:48 PM]


Re: Free Download AMIE Winter 2016 Unsolved Question Papers for Section A&B by amitavacivil
[June 11, 2018, 03:54:22 PM]


amie mechanical project work by JYOTI VERMA
[June 10, 2018, 09:47:58 PM]


Re: making whatsapp group by chandan amie
[June 05, 2018, 04:33:00 AM]