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 gets() function?
What is structure data type in c?
What is the explanation for cyclic nature of data types in c?
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions
hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell
I heard that you have to include stdio.h before calling printf. Why?
What is the difference between ‘g’ and “g” in C?
What is the ANSI C Standard?
In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping
Do you know the use of fflush() function?
Is linux written in c?
What is meant by preprocessor in c?
What is difference between structure and union in c?
What is the use of extern in c?
What is the use of sizeof?