C
Programming and Technical
Programming
Program
We are all know the Comma(,) Operator in c language is used as a separtor of variables, can any one tell me about the another Functionality of Comma(,) Operator in c language
Read Solution (Total 4)
-
- when we use comma in intialization like
a=1,2,3
then it will print 1 as its precedence
if it is used in switch case statement like
switch(2)
{
case 1,2,3: //1st
break;
case 1,3,2://2nd
}
then second case statement executed - 9 years agoHelpfull: Yes(1) No(1)
- shift left to right
- 9 years agoHelpfull: Yes(0) No(4)
- 7,6,5 STACK EVALUATION
- 9 years agoHelpfull: Yes(0) No(1)
- The second work of comma operator in c is seperation of expression,for example like this
temp=a,a=b,b=temp - 9 years agoHelpfull: Yes(0) No(0)
C Other Question