MCQs > IT & Programming > C Programming > Output of the following code snippet? main( ) { char *str[ ] = { 'Manish' 'Kumar' 'Choudhary' }; printf ( '\nstring1 = %s', str[0] ); printf ( '\nstring2 = %s', str[1] ); printf ( '\nstring3 = %s', str[2] ); }

C Programming MCQs

What would be printed on the standard output as a result of the
following code snippet?
main( )
{
char *str[ ] = {
"Manish"
"Kumar"
"Choudhary"
};

printf ( "\nstring1 = %s", str[0] );
printf ( "\nstring2 = %s", str[1] );
printf ( "\nstring3 = %s", str[2] );
}

Answer

Correct Answer: string1 = ManishKumarChoudhary string2 = (null) string3 = (null)

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