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] );
}
Correct Answer: string1 = ManishKumarChoudhary string2 = (null) string3 = (null)
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More C Programming MCQ Questions