Program to demonstrate that C compiler doesn’t follow BODMAS rule

            //Program to demonstrate that C compiler doesn’t follow BODMAS rule
            #include <stdio.h>
            #include <conio.h>
            void main()
             {
                        int a=2*3/4+4/4+8-2+5/8; clrscr();
                        printf("\nValue of a = %d",a);   getch();
            }


Post a Comment