I have a function which accepts a pointer to an int. How
can I pass a constant like 5 to it?
Answer Posted / jaya prakash
Only Using type modifiers only constant 5 is sent to
function.
[In previous 2 answers address of variable temp (5) is only
send to fn , not a constant 5]
for that fn-call is
function((int*)5);
Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
How many types of arrays are there in c?
What is storage class?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
what is the format specifier for printing a pointer value?
What is a function simple definition?
Why do we use int main instead of void main in c?
What is array of structure in c programming?
What kind of structure is a house?
What's the best way of making my program efficient?
a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list
What is the role of this pointer?
What is "Hungarian Notation"?
Give basis knowledge of web designing ...
Difference between strcpy() and memcpy() function?
What is #include in c?