In general, the source code for functions written in R can be looked up just by typing the name of the function on R console. How do you do it for functions which are written in C or C++?
For e.g. when I try and look up the code for lapply() function, it shows me this - 
function (X, FUN, ...) 
{
    FUN <- match.fun(FUN)
    if (!is.vector(X) || is.object(X)) 
        X <- as.list(X)
    .Internal(lapply(X, FUN))
}
<bytecode: 0x0000000007384128>
<environment: namespace:base>
which doesn't help in anyways to understand what exactly this function is doing.
 
    