Arrays can be initialized provided they are
Practice Arrays – Arrays can be initialized provided they are
Practice Arrays – Arrays can be initialized provided they are

Practice Arrays – What will be the output of the program ?
int main()
{
int a[5] = {5, 1, 15, 20, 25};
int i, j, m;
i = ++a[1];
j = a[1]++;m = a[i++];
printf("%d, %d, %d", i, j, m);
return 0;
}
What will happen if in a C program you assign a value to an array elem

Practice Arrays – What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array?
What will be output of the following “c” code?

Practice Arrays – What will be output of the following “c” code?
#include
int main(){
int arr[3]={10,20,30};
int x=0;
x=++arr[++x]+ ++x+arr[--x];
printf("%d ",x);
return 0;
}
Are the expressions arr and &arr same for an array of 10 integers?

Practice Arrays – Are the expressions arr and &arr same for an array of 10 integers?
What will be output of the following “c” code?

Practice Arrays – What will be output of the following “c” code?
#include
int main(){
int arr[]={6,12,18,24};
int x=0;
x=arr[1]+(arr[1]=2);
printf("%d",x); return 0;
}
What is the output of the following C Program?

Practice Arrays – What is the output of the following C Program?
#include
void main()
{
int a[10];
printf("%d",*a+1-*a+3);
}
lf S is an array of 80 characters, then the value assigned to S throug

Practice Arrays – lf S is an array of 80 characters, then the value assigned to S through the statement scanf(“%s” ,S) with input 12345 would be
What is the output of the following problem ?

Practice Arrays – What is the output of the following problem ?
int main()
{
char s[ ]="man";
int i;
for(i=0;s[ i ];i++)
printf("
%c%c%c%c",s[ i ],*(s+i),*(i+s),i[s]);
return 0;
}
What is the output of the following problem ?

Practice Arrays – What is the output of the following problem ?
#include
int main()
{
func(1);
return 0;
}
func(int i){
static char *str[] = {"One","Two", "Three", "Four"};
printf("%s
",str[i++]);
return;
}
What will be output of the following “c” code?

Practice Arrays – What will be output of the following “c” code?
#include
void main()
{
int i, a[50]={1,2,3,4,5};
for( i=0; i<5; i++)
printf("%d",*a++);
}
What will be output of the following “c” code?

Practice Arrays – What will be output of the following “c” code?
#include
void main()
{
int c[]={2.8,3.4,4,6.7,5};
int j, *p=c, *q=c;
for(j=0; j<5; j++)
{
printf("%d", *c);
++q;
}
for(j=0; j<5; j++)
{
printf("%d", *p);
++p;
}
}
Which of the following statements is true after execution of the prog

Practice Arrays – Which of the following statements is true after execution of the program
int a[l0],i,*p;
a[0]=1;
a[1]=2;
p=a;
(*p)++;
What will be output of the following “c” code?

Practice Arrays – What will be output of the following “c” code?
#include
int main(){
int arr[3]={10,20,30};
int x=0;
x=++arr[++x]+ ++x+arr[--x];
printf("%d ",x);
return 0;
}
What will be output of the following “c” code?

Practice Arrays – What will be output of the following “c” code?
#include
int main(){
int arr[]={6,12,18,24};
int x=0;
x=arr[1]+(arr[1]=2);
printf("%d",x); return 0;
}