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
Explain how can type-insensitive macros be created?
What is the return type of sizeof?
Why header files are used?
What is difference between structure and union with example?
Where static variables are stored in c?
How can I sort a linked list?
What is call by reference in functions?
Can a pointer be static?
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
What are pointers in C? Give an example where to illustrate their significance.
List some basic data types in c?
How to declare pointer variables?
What are the benefits of organizational structure?
code for replace tabs with equivalent number of blanks
What is structure in c explain with example?