Why doesn't the code "a[i] = i++;" work?

Answer Posted / guest

The variable i is both referenced and modified in the same
expression.

Is This Answer Correct ?    11 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I avoid the abort, retry, fail messages?

639


Is a house a mass structure?

632


How many parameters should a function have?

650


#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }

616


What is the difference between the expression “++a” and “a++”?

642






What is a rvalue?

736


Why clrscr is used after variable declaration?

1026


What is gets() function?

656


What is a struct c#?

590


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

1872


In c programming language, how many parameters can be passed to a function ?

617


What is size of union in c?

567


What is uint8 in c?

625


Can a variable be both const and volatile?

656


Why c is called free form language?

557