what will be the output of the following statement? int a=5,b=6,c=9,d; d=((ac?1:2):(c>b?6:8)); printf('%d',d); - Study24x7
Social learning Network
study24x7

Default error msg

Login

New to Study24x7 ? Join Now
Already have an account? Login
04 Dec 2020 06:37 PM study24x7 study24x7

what will be the output of the following statement? int a=5,b=6,c=9,d; d=((ac?1:2):(c>b?6:8)); printf("%d",d);

A

1

B

2

C

6

D

Error

study24x7
Write a comment
  • Ankit Rathi

  • 6 will be output.
    Related Questions
    500+   more Questions to answer