Thank u guys so much, definitely a great first impression to the community! Ur answers was very helpful :D
Type: Posts; User: patta
Thank u guys so much, definitely a great first impression to the community! Ur answers was very helpful :D
By the way, I don't really understand this code to the point where I can write down step by step what is going on. So could someone please enlighten me?? :)
Hello again. After hours and hours and with help from my math teacher I was able to make it.
#include <stdio.h>
#include <stdlib.h>
int mylog2(unsigned int n)
Ah ty, i get that now! :wink:
As for the rest, how should i go about the exercise? Does C have an log(2) build in function?
Hey guys! Im new to the forums and just started a programming course in college and im having some difficulties. The exercise is as followed:
The binary logarithm of n (log2n) is the power to...