   Stupid function basics question
  Ok, total n00b here...What do I do with return values???If I were to use the allegro function,??? getpixel(BITMAP*, int x, int y);which returns the value of the pixel specified, 1. What is the return value?2. What do I do with it?3. How can I use this information elsewhere / on other functions?   
  Since you substituted question marks for the actual return type of your example function, I can only answer your question in general terms. 1. It's whatever is specified before the function's name in the function declaration.2. As you would any other value.3. As you would any other value.If you have a function int foo() { return 42; } then you can do int i = foo(); or int i = foo() + 55; or getpixel(somebitmap, foo(), foo()); ...   ;  I dont use allegro but, in general1. This is where you would look up the function in the libraries documentation (probably on the site, or maybe included with the lib download), might not have a return value, could be void?2. Why did you want to use this function?3. say the return value was a single byte (char), char value = getpixel(...);...someOtherFunc(value);orvalue += anotherValue;etcthe question is almost too general, might need to know more about what your trying to do.   