Data Structure Arrays Question:
What will be output if you will execute following c code?
#include<stdio.h>
void main(){
int xxx[10]={5};
printf("%d %d",xxx[1],xxx[9]);
Arrays Interview QuestionAnswer:
Previous Question | Next Question |
What will be output if you will execute following c code?
#include<stdio.h>
void main(){
int arr[][3]={{1,2},{3,4,5},{5}};
printf("%d %d %d",sizeof(arr),arr[0][2],arr[1][2]);
} | What will be output if you will execute following c code?
#include<stdio.h>
#define WWW -1
enum {cat,rat};
void main(){
int Dhoni[]={2,'b',0x3,01001,'x1d','111',rat,WWW};
int i;
for(i=0;i<8;i++)
printf(" %d",Dhoni[i]); |