Consider the following program segment:
 main()
{
int a,b,c;
Home | Discussion Forum

Taiyari24Hour

Consider the following program segment:

 main()
{
int a,b,c;
b=3;
a=2;
a=2*(b++);
c=2*(++b);
}
The correct values are:



View More Related Question

2) What is the output of this C code?

#include <stdio.h>
int main()
{
int i = -5;
i = i / 3;
printf("%d ", i);
return 0;
}

3) What should be the value of i and k at the end of the following program segments?

 int i,j,k;
{
j=5;
i=2*j/2;
k=2*(j/2);
}

4) Which of the following is not logical operator?

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

UP Gk Online Test

taiyari24hour.com

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