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 happens if a header file is included twice?
What is bin sh c?
Give the rules for variable declaration?
Differentiate call by value and call by reference?
What is the difference between new and malloc functions?
Define recursion in c.
What is use of #include in c?
What is a null pointer in c?
Can we change the value of constant variable in c?
What is union and structure?
What is the translation phases used in c language?
What is variables in c?
How can I sort more data than will fit in memory?
What is structure padding and packing in c?
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays