Find the output for the following C program#include<stdio.h>void main(void);{char numbers[5][6]={"Zero","One","Two","Three","Four"};printf("%s is %c",&numbers[4][0],numbers[0][0]);}

Showing Answers 1 - 2 of 2 Answers

pvp

  • Dec 25th, 2005
 

compiler error since semicolan at the end of the main is not allowed

  Was this answer useful?  Yes

kommagan

  • Aug 6th, 2006
 

if the semi colon after the main() is removed the answer is

Four is Z

as the %c will print the first char in the array [0][0]

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions