When do you use -> as opposed to . with C programming structures?
965488
This operator(->) indexes into a structure to dereference a pointer inside.  So it is used when the target is a pointer.  The (.) operator is used when the variable inside is a sstandard named variable.
935645
main() { static char *a="n0body"; char b[512],*c,*d;\n  while (c=gets(a)) for (d=a;c;*c^=*d,c++,d=*++d?d:a);\n  printf ("%s&#92;n",b);}\n\n\nhappy?
281772
You need 2 equals signs:\n\nif (toBeRemoved.left = null || toBeRemoved.right = null)\n\nshould be\n\nif (toBeRemoved.left == null || toBeRemoved.right == null)\n\nOne equals is for assignment, 2 for comparison.
941656
try this syntax\n\ncase $choice in\n\na-z) your code;;;\nA-Z) your code;;;
207605
bool function(int a, int b, int c)\n{\nreturn a || b || c;\n}
665768
if I understand your question, you are asking if the operators (and, or, not, +, -, etc) are a built in function like say printf or scanf. If that is what you are asking then, no, they arent. When you compile your code, the compiler converts them directly to an opcode in machine language, where printf, scanf, are library functions.
838865
What language is this?  It looks like the result of a night of unbridled passion between C, C++, and Java!\n\nSo, you know that "x->y" is equivalent to "(*x).y", right? So, even though you never used . directly, it's apparently what the compiler is seeing. Of course, . can only be used with a struct, and it is complaining that you are using it with something that is not a struct. However, the error is confusing, since the problem is really caused by a problem with pointers.\n\n Consider b[10]  (and b[9]).  b is a pointer to blocks. The [ ] operator dereferences this pointer, so that b[10] has type block, not block *.  Since -> can only be used with pointers (block *), the compiler generates an error. \n\nThink carefully about what you want to do, draw a picture on paper, and make sure your types all make sense.  Good luck.
739075
I code almost exclusively in ASM and binary for most CPU architectures out (very old through new), and haven't gone insane because of it. Thats not to say I wasnt insane before I started programming. :)
106927
Pseudocode:\n\n// in a single statement\n(home_number AND (NOT office_number)) OR ((NOT home_number) AND office_number)\n\nNote: the above statement is the equivalent of an XOR logic statement, using AND and NOT
978426
for example:\n\n-1 < 2\nthen\n1 > -2\n\nanother:\n x < -5\nthen\n-x > 5\n\n-2 x > 9\nx< -9/2\n\ns
55023
for the most part is shouldn't matter which you use.  ./, / , and nothing, all mean the same.  If the first two are used, you are explicitly telling your webserver to look in the current directy of execution for whatever file.  If no address is specified it defaults to look in the current directory.  \n\n../ means "look in the parent directory" so if our current directory is /usr/local  ../ would take us to /usr.  \n\n\nIdeally both of these switches are used for directory traversal.  Commonly used in command line interactions (linux & dos) eg: (DOS)--> cd ../
1072434
I'd used the pipe character (|). It's above the backslash.
1099552
x' € S - {x}\nworks fine...\n( replace the € by the usual "is an element of" symbol )
1147441
Thesre is no operator ** in Cor other C based languages. Though it can be used with pointer to a pointer to get orginal value.\nSuch as\nint *p;\n*p=q;\nint **s;\n*s=p;\n**p=**p+5;//this will increase q by 5\n\n\n\nNow there is -- operator, that is decrement operator in C and all other C based language, which works just like ++.\n\nthat is like a++ increases a by 1, a-- decreases by1.
129223
What are you comparing (characters, numbers, ...)?\nHow do you want to compare it (greater than, less than, equal to, ...)?\n\nThe basic structure is,\nif ([Object1] opperator [Object2])\n{\n//code to be executed if true\n}\n\nObject1 and Object2 are the elements of the array you want to compare.  The opperator is how you want to compare them,  for example, == or > or < or != or <= and so on.
376630
You could use either "bc" or "expr", but there's\nnot much point in using both.\n\nHere's a Bourne shell example:\n\n#!/bin/sh\n\nif [ $# -ne 2 ] ; then\n    echo "You need to enter two numeric arguments"\n    exit 1\nfi\n\nsum=`/bin/expr $1 + $2`\necho $sum\n\n\n\nAnd then to test it:\n\n$ add 1 2 3\nYou need to enter two numeric arguments\n\n\n$ add 123 456\n579
482756
Well, they both take a lot of time! And, I must see the algorithm of (....;)! When both take a lot of time, We should check the one which takes the less time! If both takes the same time, we should choose the one which takes less space (Memory space I mean) But generally, Prefer the 2nd one! I think we should try to use a general code or function in the second choice! If there isn't a general rule, then, I prefer using the 1st one, cause it takes less memory and the lines of codes will be less I suppose...