Interviewer And Interviewee Guide
Interviews Quizzes

Aptitude Interview Question:

What is the o/p of the following C-program?
Main()
{
Char *str[] = { "Frogs"," do", "not", "die", "they", "croak!");
Printf("%d %d",sizeof(str),sizeof(str[0]));
}

Submitted by: Administrator
24,4(in unix)

sizeof(str[0])= storage address=inteter=4bytes;
same as sizeof(str)= storage address of 6 =6*4bytes;
Submitted by: Administrator

Read Online Aptitude Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.