c condition quiz

C Condition Quiz [Completed – Winner : Ritutosh]

Quiz C Language + Chance To Earn 150/- Rs.

Hello Developer, this is 3rd quiz on C condition quiz. This is half week quiz. Final Result will be declare on 03-01-2017..

 

Program on C Condition Quiz Details

int x = 127;
int y = 223;
int ans = 0;
char op = ‘*’;
switch(op)
{

case ‘+’:
ans = x+y;
case ‘*’:
ans = x*y;
case ‘>’:
ans = (x>y) ? x : y;
case ‘&’:
ans = x&y;
break;
default:
ans = 0;

}
printf(“Answer = %d\n”,ans);

Before give this program output, follow this simple steps

Step – 1 

Add Your Answer in Comment Box.

Step – 2

Fill Your Name and Email Information in Comment.

Step – 3

This Quiz is working only 1 week [30-12-2016 to 03-01-2017]. Do not add your answer after 03-01-2017.

Step – 4

Do not insert two time Answer of this Quiz

Step – 5

Subscribe in YouTube Channel For Next Quiz Details :

Step – 6

We randomly select one  correct Answer and give 150/-

 


 

Final Answer of 3rd C Condition + Operator Quiz

Turbo C Answer [Please check this program in Turbo C Compiler]

Answer = 95


About Program :

Here Operator Op : ‘*’

First Flow : ans =  x*y

But Program Not Found break keyword, so move to ‘>’ Operator

Second Flow : ans = (x>y) ?  : x : y;

Again Not Found break keyword, so move to ‘&’ bitwise operator ‘&’

Third Flow : ans = x&y;

& is bitwise operator, so we have to convert x = 127 and y=223 into binary numbers.

1286432168421O/P
12701111111 
22311011111 
&0101111195

So Final Answer = 95


List Of Quiz Winner…  [We will select randomly one developer from below list.]

RIZWAN ALI KHAN

BHAVESH LAKHAPATI

MAYANK BORAD

RITUTOSH RATURI

KRISHNA DEVASHISH

AMEE PATEL

HETAL MORI

 


We will send email to all winner with final selected developer in 2 hours..

 

Next quiz will be declare  within 2 hours…  Ready for next quiz..

 

1847total visits,1visits today


mayank

Hello, I am Maddy a Java blogger, trainer and developer

Related articles

31 responses to “C Condition Quiz [Completed – Winner : Ritutosh]”

    • Thank you for Answer Bhavesh Lakhapati..

      Final Answer will be declare on 03-01-2017

      Please subscribe our YouTube Channel for more quiz..

    • Thank you Mayank Borad…

      Final Answer will be declare tomorrow …

      Please share our website to more friend for more quiz and complicated quiz…

    • Thank you for replay Dhruvil Bavishi…

      Final Answer will be declare in just 1 hour…

      Please subscribe our YouTube Channel for more java quiz..

    • Thank You Gunda Shiva Kumar about Quiz 3…

      But quiz is already closed at 12:00 O’Clock..

      But don’t worry.. next quiz will be declared in 2 hours.