What is the output of the following code Segment?
#include<stdio.h>
int main()
{
int i=3, *j, k;
j= &i;
printf("%d \n", i**j*i+*j);
return 0;
}
Give the answer as a comment...
Answer is 30.
ReplyDeletewhat is the need of declaring variable k? can u explain sir, please..
ReplyDeleteDear chakri, 'k' is used only to confuse the reader..and to let others know that a variable can be declared even if we don't need it..
ReplyDelete