I have a function which accepts a pointer to an int. How
can I pass a constant like 5 to it?
Answer Posted / jaya prakash
Only Using type modifiers only constant 5 is sent to
function.
[In previous 2 answers address of variable temp (5) is only
send to fn , not a constant 5]
for that fn-call is
function((int*)5);
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
When should structures be passed by values or by references?
What is void pointers in c?
What is meant by initialization and how we initialize a variable?
code for find determinent of amatrix
What is the total generic pointer type?
Is python a c language?
Where in memory are my variables stored?
"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks
c program for searching a student details among 10 student details
What is the use of printf() and scanf() functions?
Write a program to check prime number in c programming?
Is c a great language, or what?
write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.
What is define directive?
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...