Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C Programming
»
Pointers
In the following program add a statement in the function fun() such that address of a gets stored in j? #include
int main() { int *j; void fun(int**); fun(&j); return 0; } void fun(int **k) { int a=10; /* Add a statement here */ }
**k=a;
k=&a;
*k=&a
&k=*a
Correct Answer:
*k=&a
← Previous Question
Next Question→
More Questions from
Pointers
Which of the following statements correctly declare a function that receives a pointer to pointer to a pointer to a float and returns a pointer to a pointer to a pointer to a pointer to a float?
Which of the following statements correct about k used in the below statement? char ****k;
Which of the statements is correct about the program? #include
int main() { int i=10; int *j=&i; return 0; }
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment
Join Discussion
Discussion & Comments