C Programming - Pointers - Discussion
Discussion Forum : Pointers - Find Output of Program (Q.No. 19)
19.
What will be the output of the program ?
#include<stdio.h>
power(int**);
int main()
{
int a=5, *aa; /* Address of 'a' is 1000 */
aa = &a;
a = power(&aa);
printf("%d\n", a);
return 0;
}
power(int **ptr)
{
int b;
b = **ptr***ptr;
return (b);
}
Discussion:
25 comments Page 3 of 3.
MOUNI said:
7 years ago
Please give the clear description of the answer.
Anup kumar said:
4 years ago
How ** ptr represent aa? Explain, please.
(1)
Shailu said:
1 decade ago
I need answer description for this.
Preethu said:
9 years ago
Thank you @Kavyashree.
Vasuvandan said:
1 decade ago
What is *ptr here?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers