Search results

  1. (*steve*)

    Function and their types

    Aren't they the same thing? How can they be different? No. It can't hold 10, because a is not an integer variable. But we never do that, right?
  2. (*steve*)

    Can anyone identify this component

    It will probably weigh about the same :-) Assuming that there's room to fit it, it seems good. Depending on how the original transformer was used, you may have to be careful with the phasing of the windings. Also consider that transformers are very rugged devices that can handle significant...
  3. (*steve*)

    Function and their types

    That is incorrect. #include<stdio.h> void function(int a); int main(void) { int z=10; printf(" Before calling z = %d \n",z); function(z); printf("After calling z=%d \n",z); return 0; } void function(int *a) { a*=15; } Consider the example above. During execution, what does a hold?
  4. (*steve*)

    Function and their types

    What does the * mean there? But what if that function didn't change the value. Could you pass a constant value then?
  5. (*steve*)

    Function and their types

    Which ones can you call with a constant value? Do you understand what you are passing when you say "void function foo(int *a);"? What does the * mean. Likewise what does the & in &a mean?
  6. (*steve*)

    DIY voltage Regulator

    It looks like it should work. The transistor will dissipate almost 15W at your rated maximum load and input voltage. Make sure it's rated for that and that it is sufficiently heatsinked.
  7. (*steve*)

    Function and their types

    You could look at how you can pass parameters by value and by reference. This will require a basic understanding of pointers
  8. (*steve*)

    Need Advice on this project

    What is the "position of B"? Is it relative to A, or absolute? Do you want to know the coordinates of B independent of the position of A whenever A is level, or do you want to know that B is 3 inches to the south an inch west and 4 inches lower in altitude whenever A is level? How accurate...
  9. (*steve*)

    Can anyone identify this component

    The initial indication I've been given is that the one we have left may be 16V rather than 24V, but someone is going to check for me. I'll get back to you.
  10. (*steve*)

    Can anyone identify this component

    These transformers have 2 separate windings that may be used in parallel, series, or independently. Unless you know for sure, or can check (and it's not that hard) it is best to replace with a transformer with 2 separate windings.
  11. (*steve*)

    Function and their types

    Ok, I don't see the error message. What is the size of hello.exe, and what happens if you try to run it? I'm using my phone now, so it's hard to read through the details of that log. I'll try to do it later today (in maybe 10 to 12 hours time). If I get there time, I'll try the same example...
  12. (*steve*)

    Can anyone identify this component

    Aaah, the good old Ferguson transformer. Somebody left a number of new old transformers at my local hackerspace. I'm pretty sure there was one very similar to this. I'll see if it's still there. What state are you in?
  13. (*steve*)

    Function and their types

    Add a "-v" after "gcc" (gcc -v -o hello hello.c). then post the entire contents of what is displayed (including your command line). You cannot progress simply ignoring something when you have an error. @BobK has given you an excellent example and you need to understand it. If you decide it's...
  14. (*steve*)

    Need Advice on this project

    What is the "position of B"? Is it relative to A, or absolute? How accurate does the measurement need to be? Is within a few metres (gps) enough.
  15. (*steve*)

    Need Advice on this project

    What is the "position of B"? Is it relative to A, or absolute? What about B's orientation? What are you actually trying to do?
  16. (*steve*)

    Need Advice on this project

    What are A, B, a1, and a2? What is the "position of B"? I'd it relative to A? What happens when A is not perfectly horizontal? What about B's orientation? What are you actually trying to do?
  17. (*steve*)

    Function and their types

    No, it will return 5. The arguments are separate from the return value.
  18. (*steve*)

    Function and their types

    Neither, it returns nothing.
  19. (*steve*)

    Testing Oddball MOSFETs

    Well, that is what you should see for a working mosfet. Don't get too concerned about the pinout. As long as you can connect them in circuit the right way, it's fine.
  20. (*steve*)

    Ultrasonic sonar

    Rv1 seems to change the DC gain between 1 and 2. Is that what you want?
Top