Wednesday, February 17, 2016

Find the Output..

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...

3 comments:

  1. what is the need of declaring variable k? can u explain sir, please..

    ReplyDelete
  2. Dear 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