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
Is c still relevant?
What does stand for?
will u please send me the placement papers to my mail???????????????????
What are file streams?
What is static and auto variables in c?
Explain what is a program flowchart and explain how does it help in writing a program?
Hai what is the different types of versions and their differences
What is linear search?
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
What are pointers? Why are they used?
What is an example of structure?
Write a program to use switch statement.
What are actual arguments?
What does *p++ do?
The statement, int(*x[]) () what does in indicate?