Huawei
Company
Programming
Technical
#include
main(){
int xxx[10]={5};
printf("%d %d %d",xxx[0],xxx[5],xxx[7]);
getch();
}
Read Solution (Total 9)
-
- Ans is 5 0 0 bcz xxx[10] is an array variable of 10 integer where 5 is assign on 0th position then rest all postion assign by 0 automatically.
- 10 years agoHelpfull: Yes(15) No(0)
- answr: 5 0 0
xxx[0]=5
xxx[1]=0
xxx[2]=0 ..... etc..
so ans is xxx[0]=5,xxx[5]=0,xxx[7]=0 - 10 years agoHelpfull: Yes(3) No(0)
- output: 5 0 0
since only xxx[0] is assigned with 5 and rest is 0 - 10 years agoHelpfull: Yes(2) No(0)
- XXX[0]=5 //INITIALISED
XXX[5]=0 //DEFAULT VALUE OF INT IE.%D
XXX[7]=0 //DEFAULT VALUE OF INT IE.%D - 9 years agoHelpfull: Yes(1) No(0)
- swathi jee...
zara program ku run karke to dekhoooooo - 9 years agoHelpfull: Yes(1) No(0)
- answer is 500
as xxx[0] value is 5 and rest all will have 0 value - 10 years agoHelpfull: Yes(0) No(0)
- no the ans is 0 0 0...and its true.becs for 10 array it assiging 1 value.so its it will not accept.
- 9 years agoHelpfull: Yes(0) No(3)
- answr: 5 0 0
xxx[0]=5
xxx[1]=0
xxx[2]=0 ..... etc.. - 8 years agoHelpfull: Yes(0) No(0)
- ans : 5 0 0
- 8 years agoHelpfull: Yes(0) No(0)
Huawei Other Question