MCQs > IT & Programming > C Programming > Output of the following code? char * str1 = 'abcd'; char * str2 = 'xyz'; if( str1 < str2 ) printf( '1' ); else printf( '2' );

C Programming MCQs

What is the output of the following code? char * str1 = "abcd"; char * str2 = "xyz"; if( str1 < str2 ) printf( "1" ); else printf( "2" );

Answer

Correct Answer: Undefined

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