In mathematics and computer programming, which is the correct order of mathemati

Home | Discussion Forum
Taiyari24Hour

In mathematics and computer programming, which is the correct order of mathematical operators ?



View More Related Question

2) What is the output of this C code?

#include <stdio.h>
void main()
{
unsigned int x = -5;
printf("%d", x);
}

3) What is the output of this C code?

#include <stdio.h>
void main()
{
int a = 3;
int b = ++a + a++ + --a;
printf("Value of b is %d", b);
}

4) What will be the value of count after the following program is executed?

 main()
{
int count, digit=0;
count=1;
while(digit<=9)
{
printf("%d\n",++count);
++digit;
}
}

5) Consider the following program fragment:

  main()
{
int a,b,c;
b=2;
a=2*(b++);
c=2*(++b);
}
Which one of the given answers in correct?

UP Gk Online Test

taiyari24hour.com

Study 2 Online Says....
Kindly log in or signup.