MCQs > IT & Programming > C Programming > Following code is executed? void main() { char arr1[] = 'REGALINT'; char *arr2; arr2 = arr1; printf('%d,',sizeof(arr1)); printf('%d',sizeof(arr2)); }

C Programming MCQs

What will happen when the following code is executed?
void main()
{
char arr1[] = "REGALINT";
char *arr2;
 
arr2 = arr1;
printf("%d,",sizeof(arr1));
printf("%d",sizeof(arr2));
}

Answer

Correct Answer: 9,4

Explanation:

Note: This Question is unanswered, help us to find answer for this one

C Programming Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C Programming Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it