Hello all! I am in the process of learning C programming and thought joining a C programming board would help. I am having lots of trouble with grasping the basics. Everytime I try and start to write a program I dont know where to start. I got the C for dummies book and that has helped out a little. I am trying to write a program reads integers and prints out their binary representations. I have to have 2 functions in it. One, Write a function called power that takes two integer arguments, say j, and k. Your function should return jk. Thus power( 3, 4 ) should return 81 which is 3 to the fourth power, 3 * 3 * 3 * 3. Two, You should write another function named binaryrep that takes an integer argument, say m. It outputs the binary representation of m followed by a newline.
any tips or examples to this I would love!