The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+1 vote
36 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.2k points) | 36 views

1 Answer

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


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

34,947 questions
41,991 answers
119,239 comments
41,484 users