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
What are the advantages of using linked list for tree construction?
What are linker error?
What is the right way to use errno?
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
What is static identifier?
What is a ternary operator in c?
What are the types of type specifiers?
Explain what will be the outcome of the following conditional statement if the value of variable s is 10?
how to find binary of number?
What is a 'null pointer assignment' error?
Explain the binary height balanced tree?
What does double pointer mean in c?
Explain the difference between structs and unions in c?
Why doesnt this code work?
string reverse using recursion