Professional Documents
Culture Documents
2. Datatypes
3. Literals
System.out.println(x);
System.out.println(cardno);
12.5;
'a'
Assignment Operators
Arithmetic Operators
++ ,--
int x = 5;
int y = 0;
6 + 7
x = 5;
x = 5;
y = x + x + x * ++x 40
Relational Operators
C Question
struct Student
};
int main()
int x = 5;
if(x) x != 0
{
}
if(s1) s1 != 0
{
}
}
----------------------------
Logical Operators
&& , || , !
int x = 5 , y = 5;
{}
S.o.p(x);
S.o.p(y);
-------------
------------
&, | , ^, ~ , >> , << , >>>
S.o.p(a);
byte x = 0x
------------------------------------------
switch(brcode)
{
break;
break;
break;
}
int x = 5;
switch(x)
{
break;
break;
break;
}
const and goto are keywords; no action is associated with these keywords.