FAQ Database Discussion Community


why it is allowed to pass insufficient number of parameters when calling a function in C?

c,printf,parameter-passing,function-call
I know that function prototyping is mandatory in C++ if the function is defined after the main() function, but it is optional (but recommended) in C. I recently wrote a simple program that performs addition of 2 numbers, but by mistake used the dot operator instead of a comma when...

Call java function based on name read from file [duplicate]

java,xml,authorization,function-call
This question already has an answer here: How to invoke a method in java using reflection 4 answers I am trying to write an authorization layer for my application where the developer write a java function for validating the user before allowing him to access files. The problem is...

Error:No matching function for call to

c++,arrays,multidimensional-array,parameter-passing,function-call
I am very very new to C++ and I am trying to call the function "jacobi" which performs a user specified number of iterations for the jacobi method (or at least I hope so). On the line where I call 'jacobi' I get the error "No matching function to call...

Speed of calling a function Delphi vs C++

c++,performance,delphi,function-call
I'm translating the C code from the handmadehero.org project to Delphi code. I ran into a performance issue on a specific piece: Original: inline real32 Win32GetSecondsElapsed(LARGE_INTEGER Start, LARGE_INTEGER End) { real32 Result = ((real32)(End.QuadPart - Start.QuadPart) / (real32)GlobalPerfCountFrequency); return(Result); } My version: function Win32GetSecondsElapsed(Start, &End : LARGE_INTEGER): real32; inline; begin...

Learning Sets : How do I place the asterisks and ampersands on function arguments and function calls?

c,set,function-pointers,function-call
I am confused as to when to put * and & on function arguments and ampersands on function calls and especially confused on pointers. I would also like to do a dynamic allocation in initialize but is it allowed in sets? What I understand is that my set is only...