Miscellaneous Company Exam
Company
Programming
Program
Main()
{
Char a[10][5]={"hi","hello","welcome"};
Printf("%s %s",a[2],a[3]);
}
Read Solution (Total 3)
-
- ans welco
array starts with 0 index so the initialized indexes are 0,1,2
3 is not there - 10 years agoHelpfull: Yes(2) No(1)
- strings cannot be inserted in char array
- 10 years agoHelpfull: Yes(0) No(0)
- output cannot be determined : size of each 1d array is only 5 bytes and welcome is more than that so due to absence of null in those bytes .it may print some garbage
- 10 years agoHelpfull: Yes(0) No(0)
Miscellaneous Company Exam Other Question