I have a function which accepts a pointer to an int. How
can I pass a constant like 5 to it?
Answer Posted / om prakash mishra
u have to take a temporary variable and pass its adress to
the pointer...like that given below:
// assuming all the conditions are given
int temp=5;
function(&temp);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the collection of communication lines and routers called?
What is double pointer?
What are global variables and explain how do you declare them?
Why is event driven programming or procedural programming, better within specific scenario?
Why enum is used in c?
Do you know what are the properties of union in c?
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?
What is the purpose of 'register' keyword in c language?
Where define directive used?
What is the purpose of void pointer?
Define Spanning-Tree Protocol (STP)
What is the newline escape sequence?
What is a substring in c?
a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if