015. Technical interview question: Give the output of the following code

int main()
{
  int i=2,j=2;
  while(i+1? --i : j++)
  printf("%d", i);
  return 0;
}
Watch all videos like this

Leave a Reply

Your email address will not be published. Required fields are marked *