Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Priority/Heirarchy of Operator
1) !
2) / * %
3) + 4) < > <= >=
5) == !=
6) &&
7) ||
8) =
Control Instruction
1) Sequence Control Instruction
2) Selection or Decision Control Instruction
3) Repetition or Loop Control Instruction
4) Case Control Instruction
When using Switch Statement make sure u didn't write floating point number as
case arguments nor we can test it in switch() as mentioned below
These all statements regarding switch statement is correct
switch(i+j*k);
switch(23+45%4*k);
Strings
We cannot assign a string to another whereas we can assign a char pointer to
another char pointer.
Char s1[] = hello;
Char s2[10];
Char *s = Good Morning;
Char *q;
S2 = s1 ; //Error
Q=s; //works
Once a String has been defined it cannot be initialized to another set of characters,
but such operation is perfectly valid for Pointers
Char s1[] = Hello;
Char *p = Hello;
S1 = Bye ; // Error
P = Bye;// Works
Bit Operations are only performed on int and char but not on Floats and doubles.