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
What is the auto keyword good for?
Why malloc is faster than calloc?
hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...
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
what will be maximum number of comparisons when number of elements are given?
What are header files and explain what are its uses in c programming?
What language is lisp written in?
Is main is user defined function?
What are header files in c?
Explain what is the difference between far and near ?
What is a header file?
In C programming, how do you insert quote characters (‘ and “) into the output screen?
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
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
while initialization of array why we use a[][2] why not a[2][]...?