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 difference between structure and union with example?
how to make a scientific calculater ?
c program for searching a student details among 10 student details
Is c is a low level language?
Write a program to print fibonacci series without using recursion?
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....
What are the rules for identifiers in c?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
What is a static function in c?
What is null pointer in c?
What is %d used for?
What are the different types of endless loops?
Can you please explain the difference between strcpy() and memcpy() function?
Why can’t constant values be used to define an array’s initial size?
How can I do serial ("comm") port I/O?