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
Write a program to print “hello world” without using semicolon?
Why can't I perform arithmetic on a void* pointer?
How do I round numbers?
Explain about block scope in c?
What is structure padding in c?
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......
Explain how do you override a defined macro?
What are reserved words?
What are register variables in c?
What is the main difference between calloc () and malloc ()?
What is clrscr in c?
What is Dynamic memory allocation in C? Name the dynamic allocation functions.
How can I get the current date or time of day in a c program?
What are header files in c?
Explain is it better to bitshift a value than to multiply by 2?