The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+1 vote
37 views
main()

{

int a=2;

if(a==2)

{

a=~a+2<<1;

printf("%d",a);

}

else

{

break;

}

a)-3

b)-2

c)1

d)compile error
asked in Programming by Boss (12.4k points) | 37 views

1 Answer

0 votes
compiler error : because break should be used with in loops or switch
answered by Active (3.4k points)

Related questions

0 votes
1 answer
1
asked 5 days ago in Programming by Mak Indus (33 points) | 40 views


Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

40,958 questions
47,599 answers
146,671 comments
62,335 users