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 do you mean by recursion in c?
What does sizeof int return?
Can a program have two main functions?
When we use void main and int main?
What are the types of bitwise operator?
What is the purpose of sprintf?
1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.
What is difference between Structure and Unions?
write a program to print largest number of each row of a 2D array
How does free() know explain how much memory to release?
What are the different types of control structures?
What is array within structure?
What is the general form of #line preprocessor?
How can I make it pause before closing the program output window?
Write a code to generate a series where the next element is the sum of last k terms.