C Programming :: Operators Expressions

Home > C Programming > Operators Expressions > General Questions

NA
SHSTTON
0
Solv. Corr.
0
Solv. In. Corr.
0
Attempted
0 M:0 S
Avg. Time

1 / 2

 What is the output of the following 'C' program ?

#include
int main()
{
int k=5;
for(++k<5 && k++/5 || ++k<8);
printf("%d\n",k);
}

A5

B6

C7

D8

 View Answer |  Discuss in Forum |  Workspace | Asked In Global Edge |

Answer: Option C

Explanation:

Here is no explanation for this answer

Workspace

NA
SHSTTON
0
Solv. Corr.
0
Solv. In. Corr.
0
Attempted
0 M:0 S
Avg. Time

2 / 2

 Which among the following operator has the right to left associativity?

AArithmetic

Blogical

CRelational

DIncrement/Decrement

Answer: Option D

Explanation:

Here is no explanation for this answer

Workspace