main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}

what will be the output?
}

Answer Posted / vijay

expression likes
num[i]=i++;
are always compiler dependent.
it is a bad programing to use such expression.

Is This Answer Correct ?    9 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the auto keyword good for?

804


Why malloc is faster than calloc?

792


hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...

1678


a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f

1813


what will be maximum number of comparisons when number of elements are given?

1639


What are header files and explain what are its uses in c programming?

819


What language is lisp written in?

825


Is main is user defined function?

841


What are header files in c?

801


Explain what is the difference between far and near ?

842


What is a header file?

820


In C programming, how do you insert quote characters (‘ and “) into the output screen?

1211


what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above

870


the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above

790


while initialization of array why we use a[][2] why not a[2][]...?

2074