I have a function which accepts a pointer to an int. How
can I pass a constant like 5 to it?

Answer Posted / guest

You will have to declare a temporary variable.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are header files? What are their uses?

640


What are the types of unary operators?

662


What is the best style for code layout in c?

632


Can i use “int” data type to store the value 32768? Why?

756


Why is c called a structured programming language?

681






Write a program to check palindrome number in c programming?

601


Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)

815


Differentiate between full, complete & perfect binary trees.

673


What are the advantages of the functions?

607


int i=10; printf("%d %d %d", i, i=20, i);

1017


What is selection sort in c?

611


Explain a pre-processor and its advantages.

634


Explain the difference between exit() and _exit() function?

637


How can I get back to the interactive keyboard if stdin is redirected?

670


Is it acceptable to declare/define a variable in a c header?

688