Data Structure Arrays Question:

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]);

Arrays Interview Question
Arrays Interview Question

Answer:

2 98 3 513 29 73 1 -1


Previous QuestionNext 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]);
What will be output if you will execute following c code?
#include<stdio.h>
void main(){
long double a;
signed char b;
int arr[sizeof(!a+b)];
printf("%d",sizeof(arr))
}