Technical Interview Questions And Answers

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

  1. int main()
  2. {
  3. char arr1[]= "aptitude in c";
  4. char arr2[]= "aptitude in c";
  5. if(arr1 == arr2)
  6. printf("cheers");
  7. return 0;
  8. }
int main()
{
  char arr1[]= "aptitude in c";
  char arr2[]= "aptitude in c";
  if(arr1 == arr2)
  printf("cheers");
  return 0;
}
Watch video explanation for this technical question

Leave a Reply

DEMO01